From a02432238b577881e7b2d3fc8f0d3c63156b6a92 Mon Sep 17 00:00:00 2001 From: Josh Borrow Date: Mon, 5 Feb 2024 15:09:04 -0500 Subject: [PATCH] Forgot we needed DB state --- tests/background_unit_test/test_background_settings.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/background_unit_test/test_background_settings.py b/tests/background_unit_test/test_background_settings.py index ddcd05a..6d62b62 100644 --- a/tests/background_unit_test/test_background_settings.py +++ b/tests/background_unit_test/test_background_settings.py @@ -2,10 +2,10 @@ Tests our ability to serialize/deserialize the background settings. """ -from librarian_background.settings import BackgroundSettings +def test_background_settings_full(test_server): + from librarian_background.settings import BackgroundSettings -def test_background_settings_full(): BackgroundSettings.model_validate( { "check_integrity": [ @@ -29,5 +29,7 @@ def test_background_settings_full(): ) -def test_background_settings_empty(): +def test_background_settings_empty(test_server): + from librarian_background.settings import BackgroundSettings + BackgroundSettings()