Skip to content

fvirga/new annotation unit tests#1541

Merged
anthony-chaudhary merged 10 commits intomasterfrom
fvirga/new-annotation-unit-tests
Oct 20, 2023
Merged

fvirga/new annotation unit tests#1541
anthony-chaudhary merged 10 commits intomasterfrom
fvirga/new-annotation-unit-tests

Conversation

@francescov1
Copy link
Contributor

@francescov1 francescov1 commented Aug 31, 2023

Added some new unit tests to Annotation_Update. Putting these on hold for now and instead working on the Annotation_Update refactor, so figure we can just merge the new tests in.

Ignore the huge diff for default/tests/shared/test_annotation.py, I just re-ordered the tests so that similar tests were grouped together

@@ -125,69 +125,69 @@ def test_update_sequence_id_in_cache_list(self):

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing has actually changed in this file, I just re-ordered the tests so that test cases for the same methods are grouped together

mock_get_member.assert_not_called() # Member was not fetched

# TODO: This isnt working, got it from here https://stackoverflow.com/questions/32463321/how-to-assert-method-call-order-with-python-mock
# func_calls.assert_has_calls([call.m1(), call.m2(), call.m3(), call.m4(), call.m5(), call.m6()])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wanted to add an assert to ensure we call each of these functions in the correct order, but couldnt get this strategy to work. Will revisit later if we still depend on the ordering.

@francescov1 francescov1 marked this pull request as ready for review August 31, 2023 19:22
@github-actions
Copy link

github-actions bot commented Aug 31, 2023

Unit Test Results

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit bedf37b. ± Comparison against base commit eaf8103.

♻️ This comment has been updated with latest results.

@anthony-chaudhary anthony-chaudhary merged commit 25bd8f2 into master Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants