Skip to content

Commit 59e2a12

Browse files
authored
Don't really plot images in unit tests (#548)
* Don't really plot images in unit tests * Oops,
1 parent 739ab85 commit 59e2a12

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,4 @@ target-version = ["py310"]
8181
[tool.isort]
8282
profile = "black"
8383
line_length = 110
84+
skip_glob = ["benchmarks/env/*"]

tests/hats/inspection/test_visualize_catalog.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from unittest.mock import MagicMock
22

33
import astropy.units as u
4+
import matplotlib as mpl
45
import matplotlib.pyplot as plt
56
import numpy as np
67
import pytest
@@ -30,6 +31,7 @@
3031

3132
# pylint: disable=no-member
3233

34+
mpl.use("Agg")
3335

3436
DEFAULT_CMAP_NAME = "viridis"
3537
DEFAULT_FOV = (320 * u.deg, 160 * u.deg)

0 commit comments

Comments
 (0)