Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add codecov config, add test for version parsing, mode module docstring
- Loading branch information
1 parent
991c467
commit 554cbc3
Showing
4 changed files
with
32 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
coverage: | ||
range: 50..90 | ||
round: down | ||
precision: 0 | ||
|
||
comment: | ||
layout: "diff, files" |
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,3 +1,10 @@ | ||
""" | ||
A general purpose integro-differential equation (IDE) solver. | ||
Copyright (C) 2017-2019 Joshua T Karpel | ||
Full license available at github.com/JoshKarpel/LICENSE | ||
""" | ||
|
||
from .idesolver import * | ||
from .exceptions import * | ||
from .version import __version__, version_info |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import pytest | ||
|
||
from idesolver.version import _version_info | ||
|
||
@pytest.mark.parametrize( | ||
'version, expected', | ||
[ | ||
('0.1.0', (0, 1, 0, None, None)), | ||
('0.1.0a5', (0, 1, 0, 'a', 5)), | ||
('2.4.3', (2, 4, 3, None, None)), | ||
('2.4.3b3', (2, 4, 3, 'b', 3)), | ||
('12.44.33', (12, 44, 33, None, None)), | ||
('12.44.33b99', (12, 44, 33, 'b', 99)), | ||
('12.44.33post1', (12, 44, 33, 'post', 1)), | ||
] | ||
) | ||
def test_version_info(version, expected): | ||
assert _version_info(version) == expected |