Skip to content

Commit

Permalink
Try fixing Report test II
Browse files Browse the repository at this point in the history
  • Loading branch information
prisae committed Jun 29, 2024
1 parent 6c5c044 commit c68a0d1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from timeit import default_timer
from numpy.testing import assert_allclose

from emg3d.inversion import pygimli as ipygimli
import scooby
from emg3d import utils
from emg3d.inversion import pygimli as ipygimli


def test_known_class():
Expand All @@ -31,16 +31,11 @@ def dummy():
def test_Report(capsys):
out, _ = capsys.readouterr() # Empty capsys

if ipygimli is None:
if ipygimli.pygimli is None:
add = []
else:
add = ['pygimli', 'pgcore']

assert (
utils.OPTIONAL ==
['xarray', 'discretize', 'h5py', 'matplotlib', 'tqdm', 'IPython'] + add
)

# Reporting is now done by the external package scooby.
# We just ensure the shown packages do not change (core and optional).
out1 = utils.Report()
Expand Down

0 comments on commit c68a0d1

Please sign in to comment.