From 7ff5f1f14e9699b1df2cca25d9a2f616097aa753 Mon Sep 17 00:00:00 2001 From: Kyle Gottfried <6462596+Spitfire1900@users.noreply.github.com> Date: Tue, 3 Dec 2024 18:28:59 -0500 Subject: [PATCH] remove unused fixture --- tests/test_xontrib.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tests/test_xontrib.py b/tests/test_xontrib.py index 9d7b711..e5ac130 100644 --- a/tests/test_xontrib.py +++ b/tests/test_xontrib.py @@ -43,21 +43,7 @@ def test_autoload(xonsh_session: XonshSession): assert 'pygitstatus' in xontribs_loaded() -@pytest.fixture(scope="function", autouse=True) -def prompts(load_xontrib: abc.Callable[[str], None], - xonsh_session: XonshSession) -> abc.Generator[PromptFields, Any, Any]: - load_xontrib('pygitstatus') - assert 'pygitstatus' in xontribs_loaded() - xonsh_env: Env = xonsh_session.env # type: ignore reportAssignmentType - prompts: PromptFields = xonsh_env.get( - 'PROMPT_FIELDS') # type: ignore reportAssignmentType - assert 'pygitstatus' in prompts - yield prompts - - -# def test_prompt_run(xsh_with_aliases: XonshSession): -# def test_clean(xsh, git_repo, load_xontrib, xonsh_session): -def test_untracked(git_repo, ): +def test_untracked(git_repo): with cd(git_repo): # assert 'pygitstatus.untracked' in prompts Path('text.txt').touch()