Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature_add_param_as_datetime
- Loading branch information
Showing
4 changed files
with
236 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import mimeparse | ||
|
||
|
||
class TestDeps(object): | ||
def test_deps_mimeparse_correct_package(): | ||
"""Ensure we are dealing with python-mimeparse, not mimeparse.""" | ||
|
||
def test_mimeparse_correct_package(self): | ||
"""Ensure we are dealing with python-mimeparse, not mimeparse.""" | ||
tokens = mimeparse.__version__.split('.') | ||
msg = ( | ||
'Incorrect dependency detected. Please install the ' | ||
'"python-mimeparse" package instead of the "mimeparse" ' | ||
'package.' | ||
) | ||
|
||
tokens = mimeparse.__version__.split('.') | ||
msg = ('Incorrect dependency detected. Please install the ' | ||
'"python-mimeparse" package instead of the "mimeparse" ' | ||
'package.') | ||
|
||
# NOTE(kgriffs): python-mimeparse starts at version 1.5.2, | ||
# whereas the mimeparse package is at version 0.1.4 at the time | ||
# of this writing. | ||
assert int(tokens[0]) > 0, msg | ||
# NOTE(kgriffs): python-mimeparse starts at version 1.5.2, | ||
# whereas the mimeparse package is at version 0.1.4 at the time | ||
# of this writing. | ||
assert int(tokens[0]) > 0, msg |
Oops, something went wrong.