diff --git a/changedetectionio/tests/conftest.py b/changedetectionio/tests/conftest.py index 50f7104b..308af90c 100644 --- a/changedetectionio/tests/conftest.py +++ b/changedetectionio/tests/conftest.py @@ -49,9 +49,6 @@ def measure_memory_usage(request): s = f"Peak memory used by the test {request.node.fspath} - '{request.node.name}': {max_memory_used:.2f} MB" logger.debug(s) - with open("test-memory.log", 'a') as f: - f.write(f"{s}\n") - # Assert that the memory usage is less than 200MB # assert max_memory_used < 150, f"Memory usage exceeded 200MB: {max_memory_used:.2f} MB" @@ -109,6 +106,6 @@ def app(request): app.config.exit.set() cleanup(app_config['datastore_path']) - + request.addfinalizer(teardown) yield app