add write_file and run_python_file with tests
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from functions.run_python_file import run_python_file
|
||||
|
||||
def test():
|
||||
print(run_python_file("calculator", "main.py"))
|
||||
print(run_python_file("calculator", "main.py", ["3 + 5"]))
|
||||
print(run_python_file("calculator", "tests.py"))
|
||||
print(run_python_file("calculator", "../main.py"))
|
||||
print(run_python_file("calculator", "nonexistent.py"))
|
||||
print(run_python_file("calculator", "lorem.txt"))
|
||||
|
||||
if __name__ == "__main__":
|
||||
test()
|
||||
Reference in New Issue
Block a user