Skip to content

Commit

Permalink
test_bodies: skip image-related if not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
tfarago committed May 18, 2022
1 parent 0092e30 commit 9709998
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion syris/tests/test_bodies.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import numpy as np
import quantities as q
import syris.config as cfg
import unittest
from syris import geometry as geom
from syris.geometry import Trajectory
from syris.bodies.base import CompositeBody
from syris.bodies.isosurfaces import MetaBall
from syris.bodies.mesh import make_cube, Mesh
from syris.bodies.simple import StaticBody
from syris.imageprocessing import crop, pad, rescale
from syris.tests import default_syris_init, SyrisTest
from syris.tests import are_images_supported, default_syris_init, SyrisTest
import itertools
from syris.tests.graphics_util import get_linear_points

Expand All @@ -28,6 +29,7 @@ def setUp(self):
self.metaball_2 = MetaBall(Trajectory(get_linear_points(geom.Z)), 2 * q.mm)
self.composite = CompositeBody(traj, bodies=[self.metaball, self.metaball_2])

@unittest.skipIf(not are_images_supported(), "Images not supported")
def test_simple(self):
n = 8
ps = 1 * q.um
Expand Down

0 comments on commit 9709998

Please sign in to comment.