Fix pollution of recent cache from tests

This commit is contained in:
Veronica Berglyd Olsen committed 2022-11-09 23:10:30 +01:00
1 parent eac7d9b9ee
commit e2f3a44d96
2 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -411,11 +411,11 @@ def testBaseConfig_Internal(monkeypatch, tmpConf):
@pytest.mark.base
def testBaseConfig_RecentCache(monkeypatch, fncPath):
def testBaseConfig_RecentCache(monkeypatch, fncConf, fncPath):
"""Test recent cache file.
"""
cacheFile = fncPath / nwFiles.RECENT_FILE
recent = RecentProjects(fncPath)
recent = RecentProjects(fncConf)
# Load when there is no file should pass, but load nothing
assert not cacheFile.exists()