Skip to content

Commit

Permalink
add missing test use cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Mildophin committed Oct 14, 2024
1 parent c0e7397 commit f175667
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/test_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
OnlyCompleteOrOpenCanBeSet,
RebatchError,
)
from pasqal_cloud.utils.constants import BatchStatus, JobStatus
from pasqal_cloud.utils.constants import BatchStatus, JobStatus, QueuePriority
from pasqal_cloud.utils.filters import BatchFilters
from tests.conftest import mock_core_response
from tests.test_doubles.authentication import FakeAuth0AuthenticationSuccess
Expand Down Expand Up @@ -883,6 +883,16 @@ def test_get_batches_raises_value_error_on_invalid_value_for_limit(
BatchFilters(id=str(UUID(int=0x1))),
# List of string UUIDs for id
BatchFilters(id=[str(UUID(int=0x1)), str(UUID(int=0x2))]),
# Queue priority
BatchFilters(queue_priority=QueuePriority.MEDIUM),
# List of queue priorities
BatchFilters(queue_priority=[QueuePriority.MEDIUM, QueuePriority.LOW]),
# Open
BatchFilters(open=True),
# Device type
BatchFilters(device_type="EMU_TN"),
# Device types
BatchFilters(device_type=["EMU_TN", "FRESNEL"]),
# Start date
BatchFilters(start_date=datetime(2023, 1, 1)),
# End date
Expand Down

0 comments on commit f175667

Please sign in to comment.