Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
precommit: fix main tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DonHaul committed Aug 21, 2024
1 parent 6ac2b87 commit 0cd920d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 36 deletions.
2 changes: 1 addition & 1 deletion backoffice/backoffice/workflows/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def __init__(self, *args, **kwargs):
filter_fields = {
"status": "status",
"workflow_type": "workflow_type",
"is_update": "is_update"
"is_update": "is_update",
}

ordering_fields = {"_updated_at": "_updated_at"}
Expand Down
2 changes: 1 addition & 1 deletion backoffice/backoffice/workflows/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class WorkflowDocument(Document):
"value": fields.KeywordField(),
"current": fields.BooleanField(),
}
)
),
}
)
status = fields.KeywordField()
Expand Down
44 changes: 10 additions & 34 deletions backoffice/backoffice/workflows/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,25 +404,13 @@ def setUpClass(cls):
Workflow.objects.update_or_create(
data={
"ids": [
{
"value": "0000-0003-3302-3333",
"schema": "ORCID"
},
{
"value": "CastleFrank",
"schema": "INSPIRE BAI"
}
{"value": "0000-0003-3302-3333", "schema": "ORCID"},
{"value": "CastleFrank", "schema": "INSPIRE BAI"},
],
"name": {
"value": "Castle, Frank",
"preferred_name": "Frank Castle"
},
"name": {"value": "Castle, Frank", "preferred_name": "Frank Castle"},
"email_addresses": [
{
"value": "[email protected]",
"current": True
}
]
{"value": "[email protected]", "current": True}
],
},
status=StatusChoices.APPROVAL,
core=True,
Expand All @@ -432,25 +420,13 @@ def setUpClass(cls):
Workflow.objects.update_or_create(
data={
"ids": [
{
"value": "0000-0003-3302-2222",
"schema": "ORCID"
},
{
"value": "SmithJohn",
"schema": "INSPIRE BAI"
}
{"value": "0000-0003-3302-2222", "schema": "ORCID"},
{"value": "SmithJohn", "schema": "INSPIRE BAI"},
],
"name": {
"value": "Smith, John",
"preferred_name": "John Smith"
},
"name": {"value": "Smith, John", "preferred_name": "John Smith"},
"email_addresses": [
{
"value": "[email protected]",
"current": True
}
]
{"value": "[email protected]", "current": True}
],
},
status=StatusChoices.RUNNING,
core=True,
Expand Down

0 comments on commit 0cd920d

Please sign in to comment.