Skip to content
Snippets Groups Projects
Commit 67606463 authored by David Schäfer's avatar David Schäfer
Browse files

fix plotting test

parent 86fa51ae
No related branches found
No related tags found
3 merge requests!685Release 2.4,!684Release 2.4,!603fix plotting test
Pipeline #143618 passed with stages
in 7 minutes and 41 seconds
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
from pathlib import Path
import numpy as np import numpy as np
import pandas as pd import pandas as pd
import pytest import pytest
...@@ -11,7 +13,7 @@ import saqc ...@@ -11,7 +13,7 @@ import saqc
@pytest.mark.slow @pytest.mark.slow
def test_makeFig(): def test_makeFig(tmp_path):
# just testing for no errors to occure... # just testing for no errors to occure...
data = dios.DictOfSeries( data = dios.DictOfSeries(
pd.Series( pd.Series(
...@@ -28,11 +30,11 @@ def test_makeFig(): ...@@ -28,11 +30,11 @@ def test_makeFig():
) )
# not interactive, no storing # not interactive, no storing
dummy_path = "" outfile = str(Path(tmp_path, "test.png")) # the filesystem's temp dir
d_saqc = d_saqc.plot(field="data", path="") d_saqc = d_saqc.plot(field="data", path=outfile)
d_saqc = d_saqc.plot(field="data", path=dummy_path, history="valid", stats=True) d_saqc = d_saqc.plot(field="data", path=outfile, history="valid", stats=True)
d_saqc = d_saqc.plot(field="data", path=dummy_path, history="complete") d_saqc = d_saqc.plot(field="data", path=outfile, history="complete")
d_saqc = d_saqc.plot( d_saqc = d_saqc.plot(
field="data", path=dummy_path, ax_kwargs={"ylabel": "data is data"}, stats=True field="data", path=outfile, ax_kwargs={"ylabel": "data is data"}, stats=True
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment