Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seallard committed Aug 28, 2024
1 parent 4bbb944 commit 421397b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,3 @@ class MicrosaltOrder(OrderWithNonHumanSamples):
@property
def enumerated_samples(self) -> enumerate[MicrosaltSample]:
return enumerate(self.samples)

@property
def enumerated_new_samples(self) -> list[tuple[int, MicrosaltSample]]:
samples: list[tuple[int, MicrosaltSample]] = []
for sample_index, sample in self.enumerated_samples:
if sample.is_new:
samples.append((sample_index, sample))
return samples

@property
def enumerated_existing_samples(self) -> list[tuple[int, MicrosaltSample]]:
samples: list[tuple[int, MicrosaltSample]] = []
for sample_index, sample in self.enumerated_samples:
if not sample.is_new:
samples.append((sample_index, sample))
return samples
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from cg.services.order_validation_service.workflows.microsalt.models.sample import (
MicrosaltSample,
)
from cg.services.order_validation_service.workflows.microsalt.rules.sample.rules import (
from cg.services.order_validation_service.rules.sample.rules import (
validate_application_compatibility,
validate_application_exists,
validate_applications_not_archived,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from cg.services.order_validation_service.workflows.microsalt.models.order import (
MicrosaltOrder,
)
from cg.services.order_validation_service.workflows.microsalt.rules.sample.rules import (
from cg.services.order_validation_service.rules.sample.rules import (
validate_sample_names_unique,
validate_wells_contain_at_most_one_sample,
)
Expand Down

0 comments on commit 421397b

Please sign in to comment.