-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from joaomcteixeira/toximprove2
Improve Tox configuration
- Loading branch information
Showing
4 changed files
with
98 additions
and
34 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Test libplot.""" | ||
|
||
from taurenmd import Path | ||
from taurenmd.libs import libplot as lplt | ||
|
||
|
||
def test_param(): | ||
"""Test param plot.""" | ||
p = Path('param.pdf') | ||
lplt.param( | ||
list(range(10)), | ||
list(range(10)), | ||
filename='param.pdf', | ||
) | ||
assert p.exists() | ||
p.unlink() | ||
|
||
|
||
def test_label_dots(): | ||
"""Test label_dots plot.""" | ||
p = Path('label_dots.pdf') | ||
lplt.param( | ||
['a', 'b', 'c'], | ||
list(range(3)), | ||
filename='label_dots.pdf', | ||
) | ||
assert p.exists() | ||
p.unlink() |
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