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

precommit: fix lint tests #89

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading