Skip to content

Commit ad8bc5d

Browse files
committed
do the ci pipeline work now?
- comment out check_path_exists try figuring out why CICD Pipeline is not working
1 parent 6967b21 commit ad8bc5d

File tree

3 files changed

+39
-38
lines changed

3 files changed

+39
-38
lines changed

tests/test_ATE_Converter.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class TestATEConv(unittest.TestCase):
5353

5454
def test_module(self):
5555
repo = 'unit_tests/test_module'
56-
check_path_exists(repo)
56+
#check_path_exists(repo)
5757
resource_set = ResourceSet()
5858
graph = ProjectEcoreGraph(resource_set, repo, False)
5959
ecore_graph = graph.get_graph()
@@ -65,7 +65,7 @@ def test_module(self):
6565

6666
def test_multiple_modules(self):
6767
repo = 'unit_tests/test_multiple_modules'
68-
check_path_exists(repo)
68+
#check_path_exists(repo)
6969
resource_set = ResourceSet()
7070
graph = ProjectEcoreGraph(resource_set, repo, False)
7171
ecore_graph = graph.get_graph()
@@ -81,7 +81,7 @@ def test_multiple_modules(self):
8181

8282
def test_module_in_package(self):
8383
repo = 'unit_tests/test_module_in_package'
84-
check_path_exists(repo)
84+
#check_path_exists(repo)
8585
resource_set = ResourceSet()
8686
graph = ProjectEcoreGraph(resource_set, repo, False)
8787
ecore_graph = graph.get_graph()
@@ -96,7 +96,7 @@ def test_module_in_package(self):
9696

9797
def test_class(self):
9898
repo = 'unit_tests/test_class'
99-
check_path_exists(repo)
99+
#check_path_exists(repo)
100100
resource_set = ResourceSet()
101101
graph = ProjectEcoreGraph(resource_set, repo, False)
102102
ecore_graph = graph.get_graph()
@@ -107,7 +107,7 @@ def test_class(self):
107107

108108
def test_child_class(self):
109109
repo = 'unit_tests/test_child_class'
110-
check_path_exists(repo)
110+
#check_path_exists(repo)
111111
resource_set = ResourceSet()
112112
graph = ProjectEcoreGraph(resource_set, repo, False)
113113
ecore_graph = graph.get_graph()
@@ -116,7 +116,7 @@ def test_child_class(self):
116116

117117
def test_method(self):
118118
repo = 'unit_tests/test_method'
119-
check_path_exists(repo)
119+
#check_path_exists(repo)
120120
resource_set = ResourceSet()
121121
graph = ProjectEcoreGraph(resource_set, repo, False)
122122
ecore_graph = graph.get_graph()
@@ -130,7 +130,7 @@ def test_method(self):
130130
#test defining a method inside a class
131131
def test_method_in_class(self):
132132
repo = 'unit_tests/test_method_in_class'
133-
check_path_exists(repo)
133+
#check_path_exists(repo)
134134
resource_set = ResourceSet()
135135
graph = ProjectEcoreGraph(resource_set, repo, False)
136136
ecore_graph = graph.get_graph()
@@ -143,7 +143,7 @@ def test_method_in_class(self):
143143
#test defining multiple methods inside a class
144144
def test_multiple_methods_in_class(self):
145145
repo = 'unit_tests/test_multiple_methods_in_class'
146-
check_path_exists(repo)
146+
#check_path_exists(repo)
147147
resource_set = ResourceSet()
148148
graph = ProjectEcoreGraph(resource_set, repo, False)
149149
ecore_graph = graph.get_graph()
@@ -157,7 +157,7 @@ def test_multiple_methods_in_class(self):
157157

158158
def test_parameter(self):
159159
repo = 'unit_tests/test_parameter'
160-
check_path_exists(repo)
160+
#check_path_exists(repo)
161161
resource_set = ResourceSet()
162162
graph = ProjectEcoreGraph(resource_set, repo, False)
163163
ecore_graph = graph.get_graph()
@@ -166,7 +166,7 @@ def test_parameter(self):
166166

167167
def test_multiple_parameter(self):
168168
repo = 'unit_tests/test_multiple_parameter'
169-
check_path_exists(repo)
169+
#check_path_exists(repo)
170170
resource_set = ResourceSet()
171171
graph = ProjectEcoreGraph(resource_set, repo, False)
172172
ecore_graph = graph.get_graph()
@@ -179,7 +179,7 @@ def test_multiple_parameter(self):
179179
#test call of method by another method, both in same module
180180
def test_module_internal_method_call(self):
181181
repo = 'unit_tests/test_module_internal_method_call'
182-
check_path_exists(repo)
182+
#check_path_exists(repo)
183183
resource_set = ResourceSet()
184184
graph = ProjectEcoreGraph(resource_set, repo, False)
185185
ecore_graph = graph.get_graph()
@@ -192,7 +192,7 @@ def test_module_internal_method_call(self):
192192
#test importing a method from another module in the repo
193193
def test_internal_method_imports(self):
194194
repo = 'unit_tests/test_internal_method_imports'
195-
check_path_exists(repo)
195+
#check_path_exists(repo)
196196
resource_set = ResourceSet()
197197
graph = ProjectEcoreGraph(resource_set, repo, False)
198198
ecore_graph = graph.get_graph()
@@ -203,7 +203,7 @@ def test_internal_method_imports(self):
203203
#test importing a method from a class in another module in the repo
204204
def test_internal_class_imports(self):
205205
repo = 'unit_tests/test_internal_class_imports'
206-
check_path_exists(repo)
206+
#check_path_exists(repo)
207207
resource_set = ResourceSet()
208208
graph = ProjectEcoreGraph(resource_set, repo, False)
209209
ecore_graph = graph.get_graph()
@@ -215,7 +215,7 @@ def test_internal_class_imports(self):
215215
#test calling a function from an imported module from another package
216216
def test_internal_method_imports_package(self):
217217
repo = 'unit_tests/test_internal_method_imports_package'
218-
check_path_exists(repo)
218+
#check_path_exists(repo)
219219
resource_set = ResourceSet()
220220
graph = ProjectEcoreGraph(resource_set, repo, False)
221221
ecore_graph = graph.get_graph()
@@ -227,7 +227,7 @@ def test_internal_method_imports_package(self):
227227
#test calling a function from an imported class from another package
228228
def test_internal_method_class_imports_package(self):
229229
repo = 'unit_tests/test_internal_method_class_imports_package'
230-
check_path_exists(repo)
230+
#check_path_exists(repo)
231231
resource_set = ResourceSet()
232232
graph = ProjectEcoreGraph(resource_set, repo, False)
233233
ecore_graph = graph.get_graph()
@@ -239,7 +239,7 @@ def test_internal_method_class_imports_package(self):
239239
#test call of method in a class by another method not in the class, both in same module
240240
def test_module_internal_class_call(self):
241241
repo = 'unit_tests/test_module_internal_class_call'
242-
check_path_exists(repo)
242+
#check_path_exists(repo)
243243
resource_set = ResourceSet()
244244
graph = ProjectEcoreGraph(resource_set, repo, False)
245245
ecore_graph = graph.get_graph()
@@ -253,7 +253,7 @@ def test_module_internal_class_call(self):
253253
#test call of method in a class by another method, both in same class
254254
def test_class_internal_method_call(self):
255255
repo = 'unit_tests/test_class_internal_method_call'
256-
check_path_exists(repo)
256+
#check_path_exists(repo)
257257
resource_set = ResourceSet()
258258
graph = ProjectEcoreGraph(resource_set, repo, False)
259259
ecore_graph = graph.get_graph()
@@ -264,7 +264,7 @@ def test_class_internal_method_call(self):
264264
#test call for method in multiple packages(subpackage)
265265
def test_internal_method_imports_multiple_packages(self):
266266
repo = 'unit_tests/test_internal_method_imports_multiple_packages'
267-
check_path_exists(repo)
267+
#check_path_exists(repo)
268268
resource_set = ResourceSet()
269269
graph = ProjectEcoreGraph(resource_set, repo, False)
270270
ecore_graph = graph.get_graph()
@@ -276,7 +276,7 @@ def test_internal_method_imports_multiple_packages(self):
276276
#test call for method in class in multiple packages(subpackage)
277277
def test_internal_method_class_imports_multiple_packages(self):
278278
repo = 'unit_tests/test_internal_method_class_imports_multiple_packages'
279-
check_path_exists(repo)
279+
#check_path_exists(repo)
280280
resource_set = ResourceSet()
281281
graph = ProjectEcoreGraph(resource_set, repo, False)
282282
ecore_graph = graph.get_graph()
@@ -288,7 +288,7 @@ def test_internal_method_class_imports_multiple_packages(self):
288288
#test importing external library, one module, one method
289289
def test_call_external_library(self):
290290
repo = 'unit_tests/test_call_external_library'
291-
check_path_exists(repo)
291+
#check_path_exists(repo)
292292
resource_set = ResourceSet()
293293
graph = ProjectEcoreGraph(resource_set, repo, False)
294294
ecore_graph = graph.get_graph()
@@ -303,7 +303,7 @@ def test_call_external_library(self):
303303
#test importing multiple packages/subpackages from external library
304304
def test_call_external_library_submodule(self):
305305
repo = 'unit_tests/test_call_external_library_submodule'
306-
check_path_exists(repo)
306+
#check_path_exists(repo)
307307
resource_set = ResourceSet()
308308
graph = ProjectEcoreGraph(resource_set, repo, False)
309309
ecore_graph = graph.get_graph()
@@ -316,7 +316,7 @@ def test_call_external_library_submodule(self):
316316
#test importing class with a method (external libraries)
317317
def test_call_external_library_class(self):
318318
repo = 'unit_tests/test_call_external_library_class'
319-
check_path_exists(repo)
319+
#check_path_exists(repo)
320320
resource_set = ResourceSet()
321321
graph = ProjectEcoreGraph(resource_set, repo, False)
322322
ecore_graph = graph.get_graph()
@@ -339,7 +339,7 @@ def test_call_external_library_class(self):
339339
#test importing class with multiple methods (external libraries)
340340
def test_call_external_library_class_multiple_methods(self):
341341
repo = 'unit_tests/test_call_external_library_class_multiple_methods'
342-
check_path_exists(repo)
342+
#check_path_exists(repo)
343343
resource_set = ResourceSet()
344344
graph = ProjectEcoreGraph(resource_set, repo, False)
345345
ecore_graph = graph.get_graph()
@@ -349,7 +349,7 @@ def test_call_external_library_class_multiple_methods(self):
349349
#test importing multiple methods in one module (external libraries)
350350
def test_call_external_library_multiple_methods(self):
351351
repo = 'unit_tests/test_call_external_library_multiple_methods'
352-
check_path_exists(repo)
352+
#check_path_exists(repo)
353353
resource_set = ResourceSet()
354354
graph = ProjectEcoreGraph(resource_set, repo, False)
355355
ecore_graph = graph.get_graph()
@@ -359,7 +359,7 @@ def test_call_external_library_multiple_methods(self):
359359
#test imported packages (and subpackages) with multiple modules (external libraries)
360360
def test_call_external_library_multiple_modules_same_package(self):
361361
repo = 'unit_tests/test_call_external_library_multiple_modules_same_package'
362-
check_path_exists(repo)
362+
#check_path_exists(repo)
363363
resource_set = ResourceSet()
364364
graph = ProjectEcoreGraph(resource_set, repo, False)
365365
ecore_graph = graph.get_graph()
@@ -373,7 +373,7 @@ def test_call_external_library_multiple_modules_same_package(self):
373373
#test imported packages with multiple subpackages (external libraries)
374374
def test_call_external_library_multiple_subpackages(self):
375375
repo = 'unit_tests/test_call_external_library_multiple_subpackages'
376-
check_path_exists(repo)
376+
#check_path_exists(repo)
377377
resource_set = ResourceSet()
378378
graph = ProjectEcoreGraph(resource_set, repo, False)
379379
ecore_graph = graph.get_graph()

tests/test_ETM_Converter.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def test_internal_method_imports_package(self):
503503
#test calling a function from an imported class from another package
504504
def test_internal_method_class_imports_package(self):
505505
repo = 'unit_tests/test_internal_method_class_imports_package'
506-
check_path_exists(repo)
506+
#check_path_exists(repo)
507507
resource_set = ResourceSet()
508508
graph = ProjectEcoreGraph(resource_set, repo, False)
509509
ecore_graph = graph.get_graph()
@@ -531,7 +531,7 @@ def test_internal_method_class_imports_package(self):
531531
#test call of method in a class by another method not in the class, both in same module
532532
def test_module_internal_class_call(self):
533533
repo = 'unit_tests/test_module_internal_class_call'
534-
check_path_exists(repo)
534+
#check_path_exists(repo)
535535
resource_set = ResourceSet()
536536
graph = ProjectEcoreGraph(resource_set, repo, False)
537537
ecore_graph = graph.get_graph()
@@ -559,7 +559,7 @@ def test_module_internal_class_call(self):
559559
#test call of method in a class by another method, both in same class
560560
def test_class_internal_method_call(self):
561561
repo = 'unit_tests/test_class_internal_method_call'
562-
check_path_exists(repo)
562+
#check_path_exists(repo)
563563
resource_set = ResourceSet()
564564
graph = ProjectEcoreGraph(resource_set, repo, False)
565565
ecore_graph = graph.get_graph()
@@ -587,7 +587,7 @@ def test_class_internal_method_call(self):
587587
#test call for method in multiple packages(subpackage)
588588
def test_internal_method_imports_multiple_packages(self):
589589
repo = 'unit_tests/test_internal_method_imports_multiple_packages'
590-
check_path_exists(repo)
590+
#check_path_exists(repo)
591591
resource_set = ResourceSet()
592592
graph = ProjectEcoreGraph(resource_set, repo, False)
593593
ecore_graph = graph.get_graph()
@@ -619,7 +619,7 @@ def test_internal_method_imports_multiple_packages(self):
619619
#test call for method in class in multiple packages(subpackage)
620620
def test_internal_method_class_imports_multiple_packages(self):
621621
repo = 'unit_tests/test_internal_method_class_imports_multiple_packages'
622-
check_path_exists(repo)
622+
#check_path_exists(repo)
623623
resource_set = ResourceSet()
624624
graph = ProjectEcoreGraph(resource_set, repo, False)
625625
ecore_graph = graph.get_graph()
@@ -653,7 +653,7 @@ def test_internal_method_class_imports_multiple_packages(self):
653653
#test importing external library, one module, one method
654654
def test_call_external_library(self):
655655
repo = 'unit_tests/test_call_external_library'
656-
check_path_exists(repo)
656+
#check_path_exists(repo)
657657
resource_set = ResourceSet()
658658
graph = ProjectEcoreGraph(resource_set, repo, False)
659659
ecore_graph = graph.get_graph()
@@ -685,7 +685,7 @@ def test_call_external_library(self):
685685
#test importing multiple packages/subpackages from external library
686686
def test_call_external_library_submodule(self):
687687
repo = 'unit_tests/test_call_external_library_submodule'
688-
check_path_exists(repo)
688+
#check_path_exists(repo)
689689
resource_set = ResourceSet()
690690
graph = ProjectEcoreGraph(resource_set, repo, False)
691691
ecore_graph = graph.get_graph()
@@ -766,7 +766,7 @@ def test_call_external_library_class(self):
766766
#test importing class with multiple methods (external libraries)
767767
def test_call_external_library_class_multiple_methods(self):
768768
repo = 'unit_tests/test_call_external_library_class_multiple_methods'
769-
check_path_exists(repo)
769+
#check_path_exists(repo)
770770
resource_set = ResourceSet()
771771
graph = ProjectEcoreGraph(resource_set, repo, False)
772772
ecore_graph = graph.get_graph()
@@ -804,7 +804,7 @@ def test_call_external_library_class_multiple_methods(self):
804804
#test importing multiple methods in one module (external libraries)
805805
def test_call_external_library_multiple_methods(self):
806806
repo = 'unit_tests/test_call_external_library_multiple_methods'
807-
check_path_exists(repo)
807+
#check_path_exists(repo)
808808
resource_set = ResourceSet()
809809
graph = ProjectEcoreGraph(resource_set, repo, False)
810810
ecore_graph = graph.get_graph()
@@ -842,7 +842,7 @@ def test_call_external_library_multiple_methods(self):
842842
#test imported packages (and subpackages) with multiple modules (external libraries)
843843
def test_call_external_library_multiple_modules_same_package(self):
844844
repo = 'unit_tests/test_call_external_library_multiple_modules_same_package'
845-
check_path_exists(repo)
845+
#check_path_exists(repo)
846846
resource_set = ResourceSet()
847847
graph = ProjectEcoreGraph(resource_set, repo, False)
848848
ecore_graph = graph.get_graph()
@@ -889,7 +889,7 @@ def test_call_external_library_multiple_modules_same_package(self):
889889
#test imported packages with multiple subpackages (external libraries)
890890
def test_call_external_library_multiple_subpackages(self):
891891
repo = 'unit_tests/test_call_external_library_multiple_subpackages'
892-
check_path_exists(repo)
892+
#check_path_exists(repo)
893893
resource_set = ResourceSet()
894894
graph = ProjectEcoreGraph(resource_set, repo, False)
895895
ecore_graph = graph.get_graph()
@@ -946,7 +946,7 @@ def test_call_external_library_multiple_subpackages(self):
946946
#test if hashed node names exist, are the right number, and are zipped with node type into one array
947947
def test_hashed_names(self):
948948
repo = 'unit_tests/test_hashed_names'
949-
check_path_exists(repo)
949+
#check_path_exists(repo)
950950
resource_set = ResourceSet()
951951
graph = ProjectEcoreGraph(resource_set, repo, False)
952952
ecore_graph = graph.get_graph()

tests/test_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ def check_path_exists(file):
55
"""Check if the repository path exists."""
66
if not os.path.exists(file):
77
raise FileNotFoundError(f"Repository path '{file}' does not exist.")
8+
return True

0 commit comments

Comments
 (0)