Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS-759 (and VS-760) #8137

Merged
merged 15 commits into from
Jan 5, 2023
Merged

VS-759 (and VS-760) #8137

merged 15 commits into from
Jan 5, 2023

Conversation

gbggrant
Copy link
Collaborator

Add more testing for create_genes_bqloadjson_from_annotations and create_vt_bqloadjson_from_annotations

@codecov
Copy link

codecov bot commented Dec 22, 2022

Codecov Report

❗ No coverage uploaded for pull request base (ah_var_store@ea3408b). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files
@@               Coverage Diff                @@
##             ah_var_store     #8137   +/-   ##
================================================
  Coverage                ?   86.242%           
  Complexity              ?     35199           
================================================
  Files                   ?      2173           
  Lines                   ?    165045           
  Branches                ?     17793           
================================================
  Hits                    ?    142338           
  Misses                  ?     16383           
  Partials                ?      6324           

Copy link
Collaborator

@mcovarr mcovarr left a comment

Choose a reason for hiding this comment

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

OOC why are the expected files checked in compressed?

self.assertEqual(contents, expected_contents)

# This test tries to read an old-style json file and verifies that the program will fail if fed such a file
@unittest.expectedFailure
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there a way to be sure this fails for the expected reason?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've updated the code to capture stderr and verify that the failure is for the expected reason.

@gbggrant
Copy link
Collaborator Author

gbggrant commented Jan 4, 2023

@mcovarr I checked the test files in compressed as I was trying to save space, but I kind of agree that it's not very necessary (and they're not that big), so will decompress.

…reate_vt_bqloadjson_from_annotations.py to support testing.
…e_genes_bqloadjson_from_annotations.py so that expected failures when trying to load old style annotations files verified that the failure was as expected (and not just a rando failure).
@gbggrant gbggrant merged commit 20409d9 into ah_var_store Jan 5, 2023
@gbggrant gbggrant deleted the gg_VS-759_MasTests branch January 5, 2023 17:39
This was referenced Mar 17, 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.

3 participants