Skip to content

Commit

Permalink
Merge branch 'adding_circlar_ports_try_3' of github.com:fusion-energy…
Browse files Browse the repository at this point in the history
…/paramak into adding_circlar_ports_try_3
  • Loading branch information
shimwell committed Mar 19, 2022
2 parents 91aa3dd + 1457679 commit b7aa664
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tests/test_parametric_components/test_circular_port.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@

import unittest

import paramak


class TestCircularPort(unittest.TestCase):
def setUp(self):

self.test_shape = paramak.CircularPort(
inner_radius = 20,
azimuth_placement_angle=[0., 30., 60., 90., 120., 150., 180., 210., 240., 270., 300., 330.],
color = (0,1,0),
inner_radius=20,
azimuth_placement_angle=[0.0, 30.0, 60.0, 90.0, 120.0, 150.0, 180.0, 210.0, 240.0, 270.0, 300.0, 330.0],
color=(0, 1, 0),
rotation_angle=180,
blank_flange_thickness=4,
flange_thickness=10,
wall_thickness=2,
distance = 50,
flange_gap=0
distance=50,
flange_gap=0,
)

def test_default_parameters(self):
Expand All @@ -29,7 +28,7 @@ def test_default_parameters(self):
assert self.test_shape.wall_thickness == 2
assert self.test_shape.distance == 50
assert self.test_shape.flange_gap == 0

def test_creation(self):
"""Creates a circular port cutter using the CircularPort parametric
component and checks that a cadquery solid is created."""
Expand Down

0 comments on commit b7aa664

Please sign in to comment.