only clean up if _testing file exists

explicit_write_pps_on_exit
algorandpa 2023-02-14 20:02:36 -05:00 committed by jaredgoldman
parent 316ead577d
commit 9acbfacd4c
1 changed files with 3 additions and 2 deletions

View File

@ -36,8 +36,9 @@ log = get_logger(__name__)
def paper_cleanup():
yield
app_dir = get_app_dir('piker')
rmtree(app_dir)
assert not os.path.isfile(app_dir)
if os.path.isfile(app_dir)
rmtree(app_dir)
assert not os.path.isfile(app_dir)
def test_paper_trade(
open_test_pikerd: AsyncContextManager,