Skip to content

Commit bc3bc1f

Browse files
committed
Set mplbackend to Agg for fmudesign cli tests
1 parent 5646343 commit bc3bc1f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/fmudesign/test_use_cases.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,14 @@ def test_all_input_files(tmpdir, monkeypatch, designfile, verbosity):
177177

178178
# Run the CLI tool (test will fail on non-zero status code)
179179
verbose = ["--verbose"] * verbosity
180+
env = os.environ.copy()
181+
env.setdefault("MPLBACKEND", "Agg")
180182
subprocess.run(
181-
["fmudesign", designfile, *verbose], check=True, capture_output=True, text=True
183+
["fmudesign", designfile, *verbose],
184+
check=True,
185+
capture_output=True,
186+
text=True,
187+
env=env,
182188
)
183189

184190

0 commit comments

Comments
 (0)