Use a custom cache directory for test_stepwise tests

Otherwise the tests will use tox's env cache which makes them flaky
This commit is contained in:
Bruno Oliveira 2018-11-12 16:57:39 -02:00
parent dc20dedbc7
commit f8f22d29ee
1 changed files with 8 additions and 0 deletions

View File

@ -41,6 +41,14 @@ def test_success():
"""
)
# customize cache directory so we don't use the tox's cache directory, which makes tests in this module flaky
testdir.makeini(
"""
[pytest]
cache_dir = .cache
"""
)
return testdir