Skip to content

Commit

Permalink
Update tests for new call signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmymathews committed Sep 30, 2024
1 parent fd7b7af commit 6f3fdc9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ def main():
phenotype_total = sum(
phenotype_count['count'] for phenotype_count in response['counts']
)
total = response['number_cells_in_study']
print(total)
if phenotype_total != expected:
raise ValueError(f'Got wrong number: {phenotype_total}, expected {expected}.')

Expand Down
2 changes: 1 addition & 1 deletion test/ondemand/module_tests/get_class_counts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def get_counts(study_name, positives, negatives):
return OnDemandRequester.get_counts_by_specimen(positives, negatives, study_name, 0, ())
return OnDemandRequester.get_counts_by_specimen(positives, negatives, study_name, ())


def main():
Expand Down
2 changes: 1 addition & 1 deletion test/ondemand/module_tests/test_edge_cases_few_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def retrieve_case(case):
study_name = 'Melanoma intralesional IL2'
counts = OnDemandRequester.get_counts_by_specimen(case[0], case[1], study_name, 0, ())
counts = OnDemandRequester.get_counts_by_specimen(case[0], case[1], study_name, ())
total = sum(entry.count for entry in counts.counts)
return total

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

def main():
study_name = 'Melanoma intralesional IL2'
counts = OnDemandRequester.get_counts_by_specimen(['CD3'], ['CD8', 'CD20'], study_name, 0, ())
counts = OnDemandRequester.get_counts_by_specimen(['CD3'], ['CD8', 'CD20'], study_name, ())

counts_json = json.dumps(counts.model_dump(), indent=4).rstrip()
with open('module_tests/expected_counts_structured1.json', 'rt', encoding='utf-8') as file:
Expand Down

0 comments on commit 6f3fdc9

Please sign in to comment.