Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eliottBo committed Feb 4, 2025
1 parent 4c2bcb1 commit b35dfcf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cg/meta/orders/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ def get_ticket_tags(order: Order, order_type: OrderType) -> list[str]:

def contains_only_existing_samples(order: OrderWithCases) -> bool:
"""Check if the order contains only existing samples"""

if order.enumerated_new_samples:
return False
return True


def get_ticket_status(order: Order) -> Status:
"""Get the ticket status based on the order"""

if isinstance(order, OrderWithCases):
if contains_only_existing_samples(order=order):
return Status.OPEN
Expand Down
1 change: 0 additions & 1 deletion tests/fixture_plugins/orders_fixtures/order_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,3 @@ def mip_dna_order_with_only_existing_samples(mip_dna_order_to_submit: dict) -> M
for case in mip_dna_order_with_only_existing_samples.cases:
case.samples = [ExistingSample(internal_id="ACC1234")]
return mip_dna_order_with_only_existing_samples

1 change: 0 additions & 1 deletion tests/services/orders/submitter/test_order_submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,3 @@ def test_get_ticket_status(

# THEN the status should be correct
assert status == expected_status

0 comments on commit b35dfcf

Please sign in to comment.