From fd5475ba38196414d4b3dbee19d75a103fd4efda Mon Sep 17 00:00:00 2001 From: Leigh Morresi <275001+dgtlmoon@users.noreply.github.com> Date: Sun, 21 Feb 2021 14:05:52 +0100 Subject: [PATCH] Minor cleanup --- backend/__init__.py | 2 +- backend/pytest.ini | 2 ++ backend/tests/test_backend.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 backend/pytest.ini diff --git a/backend/__init__.py b/backend/__init__.py index cf090abb..c513d1b7 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -450,7 +450,7 @@ class Worker(threading.Thread): app.logger.error("File permission error updating", uuid, str(s)) else: if result: - + datastore.update_watch(uuid=uuid, update_obj=result) if contents: diff --git a/backend/pytest.ini b/backend/pytest.ini new file mode 100644 index 00000000..8b9ccf85 --- /dev/null +++ b/backend/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +addopts = --no-start-live-server --live-server-port=5005 \ No newline at end of file diff --git a/backend/tests/test_backend.py b/backend/tests/test_backend.py index 2e1027ef..fcdf8519 100644 --- a/backend/tests/test_backend.py +++ b/backend/tests/test_backend.py @@ -38,7 +38,7 @@ def set_modified_response(): f.write(test_return_data) -def test_add_endpoint_to_live_server(client, live_server): +def test_check_basic_change_detection_functionality(client, live_server): sleep_time_for_fetch_thread = 3 @live_server.app.route('/test-endpoint')