Skip to content

Commit

Permalink
Remove old pacbio validation (#4088)
Browse files Browse the repository at this point in the history
Remove old pacbio validation
  • Loading branch information
diitaz93 authored Jan 15, 2025
1 parent f09e33e commit b06e8c9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 155 deletions.
6 changes: 3 additions & 3 deletions cg/services/order_validation_service/rules/sample/rules.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from cg.models.orders.constants import OrderType
from cg.models.orders.sample_base import ControlEnum
from cg.services.order_validation_service.errors.sample_errors import (
ApplicationArchivedError,
ApplicationNotCompatibleError,
Expand All @@ -18,6 +17,7 @@
OrganismDoesNotExistError,
PoolApplicationError,
PoolPriorityError,
SampleNameNotAvailableControlError,
SampleNameNotAvailableError,
SampleNameRepeatedError,
VolumeRequiredError,
Expand Down Expand Up @@ -275,12 +275,12 @@ def validate_sample_names_available(

def validate_non_control_sample_names_available(
order: OrderWithControlSamples, store: Store, **kwargs
) -> list[SampleNameNotAvailableError]:
) -> list[SampleNameNotAvailableControlError]:
"""
Validate that non-control sample names do not exists in the database under the same customer.
Applicable to all orders with control samples.
"""
errors: list[SampleNameNotAvailableError] = get_sample_name_not_available_errors(
errors: list[SampleNameNotAvailableControlError] = get_sample_name_not_available_errors(
order=order, store=store, has_order_control=True
)
return errors
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from cg.services.order_validation_service.workflows.fastq.models.order import FastqOrder
from cg.services.order_validation_service.workflows.mip_dna.models.order import MipDnaOrder
from cg.services.order_validation_service.workflows.mip_rna.models.order import MipRnaOrder
from cg.services.order_validation_service.workflows.pacbio_long_read.models.order import PacbioOrder


@pytest.fixture(scope="session")
Expand Down Expand Up @@ -145,9 +146,7 @@ def all_orders_to_submit(
# ),
OrderType.MIP_DNA: MipDnaOrder.model_validate(mip_dna_order_to_submit),
OrderType.MIP_RNA: MipRnaOrder.model_validate(mip_rna_order_to_submit),
OrderType.PACBIO_LONG_READ: OrderIn.parse_obj(
pacbio_order_to_submit, project=OrderType.PACBIO_LONG_READ
),
OrderType.PACBIO_LONG_READ: PacbioOrder.model_validate(pacbio_order_to_submit),
# OrderType.RML: OrderIn.parse_obj(rml_order_to_submit, project=OrderType.RML),
# OrderType.RNAFUSION: RnaFusionOrder.model_validate(rnafusion_order_to_submit),
# OrderType.SARS_COV_2: OrderIn.parse_obj(
Expand Down
41 changes: 0 additions & 41 deletions tests/services/orders/test_validate_order_service/conftest.py

This file was deleted.

This file was deleted.

0 comments on commit b06e8c9

Please sign in to comment.