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')