|
12 | 12 | filter_cases_by_entry_id,
|
13 | 13 | filter_cases_by_name,
|
14 | 14 | filter_cases_by_priority,
|
15 |
| - filter_cases_by_ticket_id, |
16 | 15 | filter_cases_by_workflow_search,
|
17 | 16 | filter_cases_for_analysis,
|
18 | 17 | filter_cases_has_sequence,
|
@@ -704,36 +703,6 @@ def test_filter_running_cases_only_running_cases(store_with_multiple_cases_and_s
|
704 | 703 | assert active_cases.count() == cases_query.count()
|
705 | 704 |
|
706 | 705 |
|
707 |
| -def test_filter_cases_by_ticket_no_matching_ticket( |
708 |
| - store_with_multiple_cases_and_samples: Store, non_existent_id: str |
709 |
| -): |
710 |
| - """Test that no cases are returned when filtering by a non-existent ticket.""" |
711 |
| - # GIVEN a store containing cases with no matching ticket id |
712 |
| - cases_query: Query = store_with_multiple_cases_and_samples._get_query(table=Case) |
713 |
| - |
714 |
| - # WHEN filtering cases by a non-existent ticket |
715 |
| - filtered_cases: Query = filter_cases_by_ticket_id(cases=cases_query, ticket_id=non_existent_id) |
716 |
| - |
717 |
| - # THEN the query should return no cases |
718 |
| - assert filtered_cases.count() == 0 |
719 |
| - |
720 |
| - |
721 |
| -def test_filter_cases_by_ticket_matching_ticket( |
722 |
| - store_with_multiple_cases_and_samples: Store, ticket_id: str |
723 |
| -): |
724 |
| - """Test that cases are returned when filtering by an existing ticket id.""" |
725 |
| - # GIVEN a store containing cases with a matching ticket id |
726 |
| - cases_query: Query = store_with_multiple_cases_and_samples._get_query(table=Case) |
727 |
| - |
728 |
| - # WHEN filtering cases by an existing ticket id |
729 |
| - filtered_cases: Query = filter_cases_by_ticket_id(cases=cases_query, ticket_id=ticket_id) |
730 |
| - |
731 |
| - # THEN the query should return cases with the matching ticket |
732 |
| - assert filtered_cases.count() > 0 |
733 |
| - for case in filtered_cases: |
734 |
| - assert ticket_id in case.tickets |
735 |
| - |
736 |
| - |
737 | 706 | def test_filter_cases_by_customer_entry_ids(store_with_multiple_cases_and_samples: Store):
|
738 | 707 | """Test that cases are returned when filtering by customer entry ids."""
|
739 | 708 | # GIVEN a store containing cases with customer ids
|
|
0 commit comments