Files

21 lines
461 B
Python
Raw Permalink Normal View History

2025-08-15 16:14:02 +02:00
from functions.run_python import run_python_file
2025-08-04 17:35:26 +02:00
def test():
2025-08-15 16:14:02 +02:00
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)
2025-08-04 17:35:26 +02:00
if __name__ == "__main__":
test()