Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
markur4 committed Nov 26, 2023
1 parent 9f7a23a commit 6c73645
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
4 changes: 2 additions & 2 deletions testing/.coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ source =
; */site-packages


[run]
parallel = true
; [run]
; parallel = true
; omit = tests/*
; branch = true
; source =
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

25 changes: 22 additions & 3 deletions tests/plotedits_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ def test_edit_titles_with_func(DF, dims):
def test_edit_titles_replace(DF, dims, titles: dict):
DA = plst.DataAnalysis(data=DF, dims=dims, verbose=False)
if DA.factors_rowcol: #' Need facetting, otherwise no axes
DA.plot()
DA.edit_titles_replace(titles=titles)
(DA.plot().edit_titles_replace(titles=titles))
if __name__ == "__main__":
plt.show()
else:
Expand All @@ -81,5 +80,25 @@ def test_edit_titles_replace(DF, dims, titles: dict):
if __name__ == "__main__":
ipytest.run()

#%%
# %%


@pytest.mark.parametrize("DF, dims", dac.zipped_ALL)
def test_edit_xy_axis_labels(DF, dims):
DA = plst.DataAnalysis(data=DF, dims=dims, verbose=False)
DA.plot().edit_xy_axis_labels(
x="ui!",
x_lowest_row="rambazamba",
x_notlowest_row="FLOH",
y="Johannes",
y_leftmost_col="Gertrude",
y_notleftmost_col="Hä?",
)
if __name__ == "__main__":
plt.show()
else:
plt.close("all")


if __name__ == "__main__":
ipytest.run()

0 comments on commit 6c73645

Please sign in to comment.