Skip to content

Commit c6d1cc2

Browse files
Merge pull request #2 from gecos-lab/remove_og_data
fix(remove dependency): removed dependency for open-geode
2 parents 53b5068 + 711b902 commit c6d1cc2

5 files changed

Lines changed: 2 additions & 23 deletions

File tree

requirements.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
OpenGeode-core

requirements.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +0,0 @@
1-
#
2-
# This file is autogenerated by pip-compile with Python 3.10
3-
# by the following command:
4-
#
5-
# pip-compile requirements.in
6-
#
7-
opengeode-core==15.18.0
8-
# via -r requirements.in

src/template_python_project/functions.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Standard library imports
22
import os
33

4-
# Third party imports
5-
import opengeode
6-
74

85
# Local application imports
96

@@ -28,7 +25,3 @@ def string_upper(string="Hello world"):
2825
string_upper = string.upper()
2926
print(string_upper, flush=True)
3027
return string_upper
31-
32-
33-
def load_brep(path):
34-
return opengeode.load_brep(path)

tests/data/cube.og_brep

-463 KB
Binary file not shown.

tests/test_functions.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
multiply,
55
divide,
66
string_upper,
7-
load_brep,
87
)
98
import os
109
import pytest
1110

12-
#@pytest.mark.skip(reason="Skipping this test for now because ...")
11+
12+
# @pytest.mark.skip(reason="Skipping this test for now because ...")
1313
@pytest.mark.slow
1414
def test_sum():
1515
assert sum(1, 2) == 3
@@ -34,8 +34,3 @@ def test_divide():
3434
def test_string_upper():
3535
assert string_upper() == "HELLO WORLD"
3636
assert string_upper("Hi") == "HI"
37-
38-
39-
def test_load_brep():
40-
data_path = os.path.join(os.path.dirname(__file__),"data","cube.og_brep")
41-
assert load_brep(data_path)

0 commit comments

Comments
 (0)