From c6456cfa47e4004eaa52f202f5699523166f8581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Z=C3=BCbeyde=20Civelek?= Date: Thu, 14 Aug 2025 14:18:39 +0200 Subject: [PATCH] tests: fix failing tests --- .github/workflows/tests.yml | 8 ++++++-- tests/unit/test_fixtures.py | 2 +- tests/unit/test_schema_datacite.py | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 72dad9104..96e97e038 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,9 +9,13 @@ name: CI on: push: - branches: main + branches: + - main pull_request: - branches: main + branches: + - main + - additional-files + schedule: # * is a special character in YAML so you have to quote this string - cron: "0 4 * * 6" diff --git a/tests/unit/test_fixtures.py b/tests/unit/test_fixtures.py index 565702dbf..83d7d81cf 100644 --- a/tests/unit/test_fixtures.py +++ b/tests/unit/test_fixtures.py @@ -91,7 +91,7 @@ def test_fixture_categories(app, script_info, db, es, location): res = runner.invoke(cli_categories, [], obj=script_info) assert res.exit_code == 0 categories = RecordMetadata.query.all() - assert len(categories) == 7 + assert len(categories) == 8 for category in categories: assert "VIDEO" in category.json["types"] diff --git a/tests/unit/test_schema_datacite.py b/tests/unit/test_schema_datacite.py index 60db92536..9b5228624 100644 --- a/tests/unit/test_schema_datacite.py +++ b/tests/unit/test_schema_datacite.py @@ -43,6 +43,7 @@ def test_video_metadata_tranform(app, video_record_metadata, recid_pid): {"creatorName": "pluto"}, {"creatorName": "zio paperino"}, ], + "contributors": [], "dates": [{"date": "2017-03-02", "dateType": "Issued"}], "descriptions": [ {