Skip to content

Commit 36a7f41

Browse files
committed
Added test for custom cache dirname
1 parent 19e522a commit 36a7f41

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

testing/test_cache.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ def test_cachefuncarg(cache):
8787
assert result.ret == 0
8888
result.stdout.fnmatch_lines(["*1 passed*"])
8989

90+
def test_custom_cache_dirname(self, testdir):
91+
testdir.makeini("""
92+
[pytest]
93+
cache_dirname = custom_cache_dirname
94+
""")
95+
testdir.makepyfile(test_errored='def test_error():\n assert False')
96+
testdir.runpytest()
97+
assert os.path.exists('custom_cache_dirname')
9098

9199

92100
def test_cache_reportheader(testdir):

0 commit comments

Comments
 (0)