From 3caf5636e4549a9463c84e02ca1f76ddb29091f4 Mon Sep 17 00:00:00 2001 From: Jacob Filik Date: Thu, 11 Jul 2024 12:03:44 +0000 Subject: [PATCH] fix tests --- xas-standards-api/tests/test_protected_router.py | 1 + xas-standards-api/tests/utils.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/xas-standards-api/tests/test_protected_router.py b/xas-standards-api/tests/test_protected_router.py index a5ecf2b..1fbfefb 100644 --- a/xas-standards-api/tests/test_protected_router.py +++ b/xas-standards-api/tests/test_protected_router.py @@ -69,6 +69,7 @@ def get_admin_user(): "beamline_id": 1, "sample_name": unique_sample_name, "sample_prep": "test", + "sample_form": "foil", "doi": "doi", "citation": "citation", "comments": "comments", diff --git a/xas-standards-api/tests/utils.py b/xas-standards-api/tests/utils.py index 09e35af..f749a7a 100644 --- a/xas-standards-api/tests/utils.py +++ b/xas-standards-api/tests/utils.py @@ -86,6 +86,7 @@ def build_test_database(session: Session): sample_name="sample", sample_prep="pellet", sample_comp="H", + sample_form="foil", beamline_id=1, licence=LicenceType.cc_0, id=1, @@ -108,6 +109,7 @@ def build_test_database(session: Session): sample_name="sample", sample_prep="pellet", sample_comp="He", + sample_form="pellet", beamline_id=1, licence=LicenceType.cc_0, id=2,