-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move polluting test to its own thing
- Loading branch information
1 parent
b53a781
commit c4ac13b
Showing
3 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pytest | ||
from xonsh.built_ins import XonshSession | ||
from xonsh.xontribs import xontribs_loaded | ||
|
||
|
||
@pytest.mark.forked # this pollutes the pytest session | ||
def test_autoload(xonsh_session: XonshSession): | ||
from xonsh.main import _autoload_xontribs | ||
|
||
_autoload_xontribs({}) | ||
assert 'pygitstatus' in xontribs_loaded() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters