Skip to content

Commit 6252774

Browse files
zubeydecivelekjrcastro2
authored andcommitted
tests: fix failing tests
1 parent d2c68e0 commit 6252774

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ name: CI
99

1010
on:
1111
push:
12-
branches: main
12+
branches:
13+
- main
1314
pull_request:
14-
branches: main
15+
branches:
16+
- main
17+
- additional-files
18+
1519
schedule:
1620
# * is a special character in YAML so you have to quote this string
1721
- cron: "0 4 * * 6"

tests/unit/test_fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_fixture_categories(app, script_info, db, es, location):
9191
res = runner.invoke(cli_categories, [], obj=script_info)
9292
assert res.exit_code == 0
9393
categories = RecordMetadata.query.all()
94-
assert len(categories) == 7
94+
assert len(categories) == 8
9595
for category in categories:
9696
assert "VIDEO" in category.json["types"]
9797

tests/unit/test_schema_datacite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def test_video_metadata_tranform(app, video_record_metadata, recid_pid):
4343
{"creatorName": "pluto"},
4444
{"creatorName": "zio paperino"},
4545
],
46+
"contributors": [],
4647
"dates": [{"date": "2017-03-02", "dateType": "Issued"}],
4748
"descriptions": [
4849
{

0 commit comments

Comments
 (0)