From f3db3868c5193e1901b010753a82eab98d19aee3 Mon Sep 17 00:00:00 2001 From: kandelabr Date: Fri, 31 May 2024 14:49:37 +0200 Subject: [PATCH] Fix tests; remove ClampExistsError --- tests/test_optimize/test_optimizer.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/test_optimize/test_optimizer.py b/tests/test_optimize/test_optimizer.py index b4e1d8d..c016c90 100644 --- a/tests/test_optimize/test_optimizer.py +++ b/tests/test_optimize/test_optimizer.py @@ -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 @@ -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