Skip to content

Commit 72d9271

Browse files
committed
add test for non-gui backend
1 parent a03598b commit 72d9271

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_diagnostics/test_diagnostics_plots.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ def num_variables(x: dict):
66
return sum(arr.shape[-1] for arr in x.values())
77

88

9+
def test_backend():
10+
import matplotlib.pyplot as plt
11+
12+
# if the local testing backend is not Agg
13+
# then you may run into issues once you run workflow tests
14+
# on GitHub, since these use the Agg backend
15+
assert plt.get_backend() == "Agg"
16+
17+
918
def test_calibration_ecdf(random_estimates, random_targets, var_names):
1019
# basic functionality: automatic variable names
1120
out = bf.diagnostics.plots.calibration_ecdf(random_estimates, random_targets)

0 commit comments

Comments
 (0)