-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix gzip support #172
Fix gzip support #172
Conversation
application/x-gzip is a deprecated mimetype add unit test for determining gzip mimetype
Codecov Report
@@ Coverage Diff @@
## develop #172 +/- ##
========================================
Coverage 80.75% 80.75%
========================================
Files 63 63
Lines 4901 4901
========================================
Hits 3958 3958
Misses 943 943
Flags with carried forward coverage won't be shown. Click here to find out more.
|
sanity_check doesn't handle gzipped files yet.
|
@@ -8,7 +8,7 @@ def test_valid_ontology | |||
|
|||
acronym = "BRO-TST" | |||
name = "SNOMED-CT TEST" | |||
ontologyFile = "./test/data/ontology_files/BRO_v3.2.owl" | |||
ontologyFile = "./test/data/ontology_files/BRO_v3.2.owl.gz" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't agree with this change at all. It's not a good practice to modify existing unit tests (that were developed for a reason) to test new functionality. Pull request #144 that introduced support for gzip files should have come with it's own set of unit tests. There was even a request for unit tests in the pull request conversation, but it doesn't appear that they were ever added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the feedback, overloading unit tests is less than ideal.
one of the purposes of this PR draft is to show that we are missing important unit tests.
follow up on #144
when I upload a new submission with a .gz file I get the following error:
this PR:
application/x-gzip
toapplication/gzip