neerajkalyank commited on
Commit
1ed6883
1 Parent(s): 56185fb

Update test_selection.py

Browse files
Files changed (1) hide show
  1. test_selection.py +3 -0
test_selection.py CHANGED
@@ -42,6 +42,9 @@ TEST_PRICES = {
42
  }
43
 
44
  def get_tests_by_category(categories):
 
 
 
45
  available_tests = []
46
  for category in categories:
47
  if category in TEST_PRICES:
 
42
  }
43
 
44
  def get_tests_by_category(categories):
45
+ if not categories:
46
+ return [] # Return an empty list if no categories are selected
47
+
48
  available_tests = []
49
  for category in categories:
50
  if category in TEST_PRICES: