Skip to content

Commit

Permalink
Fix tests; remove ClampExistsError
Browse files Browse the repository at this point in the history
  • Loading branch information
FranzBangar committed May 31, 2024
1 parent 7d453a6 commit f3db386
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/test_optimize/test_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
from classy_blocks.mesh import Mesh
from classy_blocks.modify.clamps.free import FreeClamp
from classy_blocks.modify.clamps.links import TranslationLink
from classy_blocks.modify.clamps.surface import PlaneClamp
from classy_blocks.modify.find.geometric import GeometricFinder
from classy_blocks.modify.iteration import IterationDriver
from classy_blocks.modify.junction import ClampExistsError
from classy_blocks.modify.optimizer import Optimizer
from classy_blocks.util import functions as f
from classy_blocks.util.constants import VBIG
Expand Down Expand Up @@ -134,16 +132,6 @@ def setUp(self):

self.vertex = next(iter(self.finder.find_in_sphere([0, 0, 0])))

def test_raise_existing(self):
"""Raise an exception when adding a duplicated clamp/vertex"""
first_clamp = FreeClamp(self.vertex)
self.optimizer.release_vertex(first_clamp)

second_clamp = PlaneClamp(self.vertex, self.vertex.position, [0, 0, 1])

with self.assertRaises(ClampExistsError):
self.optimizer.release_vertex(second_clamp)

def test_optimize(self):
# move a point, then optimize it back to
# its initial-ish position
Expand Down

0 comments on commit f3db386

Please sign in to comment.