Skip to content

Commit

Permalink
Extended testing
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCappelletti94 committed Dec 4, 2019
1 parent e04ac2a commit 438968f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Binary file added test_barplots/val_auroc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions tests/test_histograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,13 @@ def test_histograms():
path += "_{feature}.jpg"

barplots(**kwargs, path=path, custom_defaults=custom_defaults)


def test_single_index():
root = "test_barplots"
df = pd.read_csv("tests/test_case.csv")
barplots(
df,
["cell_line"],
path="{root}/{{feature}}.jpg".format(root=root)
)
2 changes: 1 addition & 1 deletion tests/test_wrong_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

def test_wrong_parameters():
root = "test_barplots"
df = pd.read_csv("tests/test_case.csv", index_col=0)
df = pd.read_csv("tests/test_case.csv")
with pytest.raises(ValueError):
barplots(
df,
Expand Down

0 comments on commit 438968f

Please sign in to comment.