Add _sys_snapshot fixture and use it with more tests

This commit is contained in:
Daniel Hahler
2019-04-05 11:31:02 +02:00
parent 899e74aa14
commit 8011ff5bda
6 changed files with 18 additions and 19 deletions
+1 -1
View File
@@ -485,7 +485,7 @@ class TestGeneralUsage(object):
["*source code not available*", "E*fixture 'invalid_fixture' not found"]
)
def test_plugins_given_as_strings(self, tmpdir, monkeypatch):
def test_plugins_given_as_strings(self, tmpdir, monkeypatch, _sys_snapshot):
"""test that str values passed to main() as `plugins` arg
are interpreted as module names to be imported and registered.
#855.