Skip to content

moderation: added query match rule #2229

moderation: added query match rule

moderation: added query match rule #2229

Triggered via pull request November 8, 2024 13:33
Status Failure
Total duration 8m 40s
Artifacts

tests.yml

on: pull_request
Matrix: Python
Fit to window
Zoom out
Zoom in

Annotations

3 errors
Python (site, 3.9, postgresql14, opensearch2): site/tests/moderation/test_moderation_queries.py#L1
Black format check --- /home/runner/work/zenodo-rdm/zenodo-rdm/site/tests/moderation/test_moderation_queries.py 2024-11-08 13:33:19.707687+00:00 +++ /home/runner/work/zenodo-rdm/zenodo-rdm/site/tests/moderation/test_moderation_queries.py 2024-11-08 13:38:42.445572+00:00 @@ -10,10 +10,11 @@ from invenio_db import db from invenio_search import current_search_client from zenodo_rdm.moderation.models import ModerationQuery from zenodo_rdm.moderation.rules import match_query_rule from zenodo_rdm.api import ZenodoRDMRecord + def test_moderation_query_creation(app): """Test to create and index a ModerationQuery.""" with app.app_context(): query_string = "metadata.title:SimpleTest" @@ -34,6 +35,7 @@ query.score == score, query.active == active, ] ) -#TODO: Add test for matching query \ No newline at end of file + +# TODO: Add test for matching query
Python (site, 3.9, postgresql14, opensearch2): site/tests/moderation/test_moderation_queries.py#L1
isort-check from invenio_db import db from invenio_search import current_search_client + +from zenodo_rdm.api import ZenodoRDMRecord from zenodo_rdm.moderation.models import ModerationQuery from zenodo_rdm.moderation.rules import match_query_rule -from zenodo_rdm.api import ZenodoRDMRecord + def test_moderation_query_creation(app): """Test to create and index a ModerationQuery."""
Python (site, 3.9, postgresql14, opensearch2)
Process completed with exit code 1.