Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymedina committed Feb 28, 2024
1 parent 7018ff9 commit 4f1962a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/orca/services/synapse/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ def update_submission_status(

# Let's catch for anything that was fed that is NOT a str or int
if type(submission_id) not in [str, int]:
raise TypeError(
"``submission_id`` must be a string or int."
)
raise TypeError("``submission_id`` must be a string or int.")

# Update submission status
utils.change_submission_status(
Expand Down
1 change: 1 addition & 0 deletions tests/services/synapse/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def test_update_submission_status(
mocked_ops.client, submissionid=submission_id, status=submission_status
)


@pytest.mark.parametrize("submission_id", [(111.0, [111], (111))])
def test_update_submission_status_with_wrong_data_type(submission_id) -> None:
"""
Expand Down

0 comments on commit 4f1962a

Please sign in to comment.