Skip to content

Commit

Permalink
remove unused fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitfire1900 committed Dec 3, 2024
1 parent fdb57bc commit 7ff5f1f
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions tests/test_xontrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7ff5f1f

Please sign in to comment.