21 lines
461 B
Python
21 lines
461 B
Python
from functions.run_python import run_python_file
|
|
|
|
def test():
|
|
res = run_python_file("calculator", "main.py")
|
|
print(res)
|
|
|
|
res = run_python_file("calculator", "main.py", ["3 + 5"])
|
|
print(res)
|
|
|
|
res = run_python_file("calculator", "tests.py")
|
|
print(res)
|
|
|
|
res = run_python_file("calculator", "../main.py")
|
|
print(res)
|
|
|
|
res = run_python_file("calculator", "nonexistent.py")
|
|
print(res)
|
|
|
|
if __name__ == "__main__":
|
|
test()
|