From edb8c0c7f1e939ef85af7453ad6d043b62812579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsombor=20F=C3=B6ldi?= Date: Fri, 29 Nov 2024 14:37:59 +0000 Subject: [PATCH] fix issues --- ebl/tests/fragmentarium/test_dtos.py | 2 +- ebl/tests/fragmentarium/test_fragment_repository.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ebl/tests/fragmentarium/test_dtos.py b/ebl/tests/fragmentarium/test_dtos.py index 5b33e2c65..1e1ddbf84 100644 --- a/ebl/tests/fragmentarium/test_dtos.py +++ b/ebl/tests/fragmentarium/test_dtos.py @@ -113,7 +113,7 @@ def expected_dto(lemmatized_fragment, has_photo): "externalNumbers": ExternalNumbersSchema().dump( lemmatized_fragment.external_numbers ), - "projects": [ResearchProject["CAIC", "aluGeneva", "AMPS"].abbreviation], + "projects": [ResearchProject["CAIC"].abbreviation, ResearchProject["ALU_GENEVA"].abbreviation, ResearchProject["AMPS"].abbreviation], "archaeology": ArchaeologySchema().dump(lemmatized_fragment.archaeology), "colophon": ColophonSchema().dump(lemmatized_fragment.colophon), "authorizedScopes": [], diff --git a/ebl/tests/fragmentarium/test_fragment_repository.py b/ebl/tests/fragmentarium/test_fragment_repository.py index 7ff31eb28..054a5ed66 100644 --- a/ebl/tests/fragmentarium/test_fragment_repository.py +++ b/ebl/tests/fragmentarium/test_fragment_repository.py @@ -1085,7 +1085,7 @@ def test_query_genres(fragment_repository, query, expected): ("CAIC", [0]), ("aluGeneva", [1]), ("AMPS", [2]), - (None, [0, 1]), + (None, [0, 1, 2]), ], ) def test_query_project(fragment_repository, query, expected):