Issue #14 - Tweaks to edit, create ignore text, tests for ignore text, integrate ignore text

This commit is contained in:
Leigh Morresi
2021-02-26 20:07:26 +01:00
parent 0855017dca
commit 468184bc3a
8 changed files with 213 additions and 16 deletions

View File

@@ -13,7 +13,6 @@ import os
global app
@pytest.fixture(scope='session')
def app(request):
"""Create application for the tests."""
@@ -37,7 +36,12 @@ def app(request):
def teardown():
datastore.stop_thread = True
app.config['STOP_THREADS'] = True
try:
os.unlink("{}/url-watches.json".format(datastore_path))
except FileNotFoundError:
# This is fine in the case of a failure.
pass
request.addfinalizer(teardown)
return app