Skip to content

Commit 369fcd9

Browse files
authored
Merge pull request #1215 from CadQuery/ocp77
OCP 7.7.0
2 parents 4c6f968 + 46821d6 commit 369fcd9

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

conda/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ requirements:
1515
- setuptools
1616
run:
1717
- python {{ environ.get('PYTHON_VERSION') }}
18-
- ocp 7.6.*
18+
- ocp 7.7.*
1919
- pyparsing >=2.1.9
2020
- ezdxf
2121
- ipython

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ channels:
66
dependencies:
77
- python>=3.8
88
- ipython
9-
- ocp=7.6.*
9+
- ocp=7.7.*
1010
- pyparsing>=2.1.9
1111
- sphinx=5.0.1
1212
- sphinx_rtd_theme

tests/test_cadquery.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5410,10 +5410,10 @@ def test_project(self):
54105410
t = Compound.makeText("T", 5, 0).Faces()[0]
54115411
f = Workplane("XZ", origin=(0, 0, -7)).sphere(6).faces("not %PLANE").val()
54125412

5413-
res = t.project(f, (0, 0, -1))
5413+
res = t.project(f, (0, 0, 1))
54145414

54155415
assert res.isValid()
5416-
assert len(res.Edges()) == 8
5416+
assert len(res.Edges()) == len(t.Edges())
54175417
assert t.distance(res) == approx(1)
54185418

54195419
# extrude it
@@ -5425,12 +5425,12 @@ def test_project(self):
54255425
# project a wire
54265426
w = t.outerWire()
54275427

5428-
res_w = w.project(f, (0, 0, -1))
5428+
res_w = w.project(f, (0, 0, 1))
54295429

54305430
assert len(res_w.Edges()) == 8
54315431
assert res_w.isValid()
54325432

5433-
res_w1, res_w2 = w.project(f, (0, 0, -1), False)
5433+
res_w1, res_w2 = w.project(f, (0, 0, 1), False)
54345434

54355435
assert len(res_w1.Edges()) == 8
54365436
assert len(res_w2.Edges()) == 8
@@ -5439,7 +5439,7 @@ def test_project(self):
54395439
o = Compound.makeText("O", 5, 0).Faces()[0]
54405440
f = Workplane("XZ", origin=(0, 0, -7)).sphere(6).faces("not %PLANE").val()
54415441

5442-
res_o = o.project(f, (0, 0, -1))
5442+
res_o = o.project(f, (0, 0, 1))
54435443

54445444
assert res_o.isValid()
54455445

tests/test_exporters.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,11 @@ def test_stl_ascii(tmpdir, box123, id, opt, matchvals):
299299
@pytest.mark.parametrize(
300300
"id, opt, matchval",
301301
[
302-
(0, None, b"STL Exported by OpenCASCADE"),
303-
(1, {"ascii": False}, b"STL Exported by OpenCASCADE"),
304-
(2, {"ASCII": False}, b"STL Exported by OpenCASCADE"),
305-
(3, {"unknown_opt": 1}, b"STL Exported by OpenCASCADE"),
306-
(4, {"unknown_opt": 1, "ascii": False}, b"STL Exported by OpenCASCADE"),
302+
(0, None, b"STL Exported by Open CASCADE"),
303+
(1, {"ascii": False}, b"STL Exported by Open CASCADE"),
304+
(2, {"ASCII": False}, b"STL Exported by Open CASCADE"),
305+
(3, {"unknown_opt": 1}, b"STL Exported by Open CASCADE"),
306+
(4, {"unknown_opt": 1, "ascii": False}, b"STL Exported by Open CASCADE"),
307307
],
308308
)
309309
def test_stl_binary(tmpdir, box123, id, opt, matchval):

0 commit comments

Comments
 (0)