tests: harden test_immediate_initialiation_and_incremental_are_the_same

This commit is contained in:
Daniel Hahler 2019-04-05 10:59:08 +02:00
parent 66f743c45a
commit 899e74aa14
1 changed files with 2 additions and 2 deletions

View File

@ -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"))