tests: harden test_immediate_initialiation_and_incremental_are_the_same
This commit is contained in:
parent
66f743c45a
commit
899e74aa14
|
@ -60,10 +60,10 @@ class TestConftestValueAccessGlobal(object):
|
|||
|
||||
def test_immediate_initialiation_and_incremental_are_the_same(self, basedir):
|
||||
conftest = PytestPluginManager()
|
||||
len(conftest._dirpath2confmods)
|
||||
assert not len(conftest._dirpath2confmods)
|
||||
conftest._getconftestmodules(basedir)
|
||||
snap1 = len(conftest._dirpath2confmods)
|
||||
# assert len(conftest._dirpath2confmods) == snap1 + 1
|
||||
assert snap1 == 1
|
||||
conftest._getconftestmodules(basedir.join("adir"))
|
||||
assert len(conftest._dirpath2confmods) == snap1 + 1
|
||||
conftest._getconftestmodules(basedir.join("b"))
|
||||
|
|
Loading…
Reference in New Issue