Browse Source

Fix test conftest missing 4 model imports causing slot_preset_mappings table error

  The test conftest.py model import list was out of sync with database.py,
  missing slot_preset, project_bom, spool_k_profile, and spoolbuddy_device.
  Base.metadata.create_all() never created those tables in the test DB.
maziggy 1 month ago
parent
commit
e5a0382dba
1 changed files with 4 additions and 0 deletions
  1. 4 0
      backend/tests/conftest.py

+ 4 - 0
backend/tests/conftest.py

@@ -81,12 +81,16 @@ async def test_engine():
         print_queue,
         print_queue,
         printer,
         printer,
         project,
         project,
+        project_bom,
         settings,
         settings,
+        slot_preset,
         smart_plug,
         smart_plug,
         spool,
         spool,
         spool_assignment,
         spool_assignment,
         spool_catalog,
         spool_catalog,
+        spool_k_profile,
         spool_usage_history,
         spool_usage_history,
+        spoolbuddy_device,
         user,
         user,
         user_email_pref,
         user_email_pref,
         virtual_printer,
         virtual_printer,