Getting ./bin/pyl to pass

This commit is contained in:
Jon Herron 2022-11-15 15:56:12 -05:00
parent 2818056a37
commit 354645a1dc
2 changed files with 5 additions and 11 deletions

View File

@ -19,7 +19,7 @@ class ProcessInstanceReportFilter:
process_status: Optional[list[str]] = None
def to_dict(self) -> dict[str, str]:
"""to_dict."""
"""To_dict."""
d = {}
if self.process_model_identifier is not None:

View File

@ -13,13 +13,13 @@ from spiffworkflow_backend.services.process_instance_report_service import (
ProcessInstanceReportFilter,
)
from spiffworkflow_backend.services.process_instance_report_service import (
ProcessInstanceReportFilter,
ProcessInstanceReportService,
)
class TestProcessInstanceReportFilter(BaseTest):
"""TestProcessInstanceReportFilter."""
def test_empty_filter_to_dict(
self,
app: Flask,
@ -40,9 +40,7 @@ class TestProcessInstanceReportFilter(BaseTest):
with_super_admin_user: UserModel,
) -> None:
"""Docstring."""
d = ProcessInstanceReportFilter(
process_model_identifier="bob"
).to_dict()
d = ProcessInstanceReportFilter(process_model_identifier="bob").to_dict()
assert d == {"process_model_identifier": "bob"}
@ -76,9 +74,7 @@ class TestProcessInstanceReportFilter(BaseTest):
with_super_admin_user: UserModel,
) -> None:
"""Docstring."""
d = ProcessInstanceReportFilter(
process_status=["bob"]
).to_dict()
d = ProcessInstanceReportFilter(process_status=["bob"]).to_dict()
assert d == {"process_status": "bob"}
@ -90,9 +86,7 @@ class TestProcessInstanceReportFilter(BaseTest):
with_super_admin_user: UserModel,
) -> None:
"""Docstring."""
d = ProcessInstanceReportFilter(
process_status=["joe", "bob", "sue"]
).to_dict()
d = ProcessInstanceReportFilter(process_status=["joe", "bob", "sue"]).to_dict()
assert d == {"process_status": "joe,bob,sue"}