Skip to content

Commit 7d838ab

Browse files
committed
minor
1 parent bb3de36 commit 7d838ab

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/test_other_functions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ def test_osm_import():
109109
assert equal_tolerance(len(W.VEHICLES), 5000*4/5)
110110

111111
def test_readme():
112+
import matplotlib
113+
matplotlib.use('Agg')
114+
112115
import re, requests
113116
url = "https://raw.githubusercontent.com/toruseo/UXsim/main/README.md"
114117

tests/test_verification_dta_solvers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
import uxsim
77
from uxsim.DTAsolvers import *
88

9+
import matplotlib
10+
matplotlib.use('Agg')
11+
912
def equal_tolerance(val, check, rel_tol=0.1, abs_tol=0.0):
1013
if check == 0 and abs_tol == 0:
1114
abs_tol = 0.1

0 commit comments

Comments
 (0)