Python: Additional tests for model-editor

We currently have some problems with these files, that we should fix
later down the line. See PR comment for more details.
This commit is contained in:
Rasmus Wriedt Larsen
2024-07-02 14:28:46 +02:00
parent 6bc830dca4
commit dc33f0de1d
8 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
def not_in_pacakge_lib_func(x, y):
return x + y

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env python
import not_in_pacakge_lib_copy
def not_in_package_script_func(x, y):
return x + y
if __name__ == "__main__":
print(not_in_pacakge_lib_copy.not_in_pacakge_lib_func(1, 2))
print(not_in_package_script_func(3, 4))

View File

@@ -0,0 +1,5 @@
# model editor should allow modeling the functions defined in this file, even when the
# file is not imported explicitly.
def possibly_lib_func(x, y):
return x + y