add write_file and run_python_file with tests

This commit is contained in:
2026-03-28 11:42:52 +01:00
parent 164d89c295
commit fc885a4cb9
7 changed files with 82 additions and 75 deletions
+9
View File
@@ -0,0 +1,9 @@
from functions.write_file import write_file
def test():
print(write_file("calculator", "lorem.txt", "wait, this isn't lorem ipsum"))
print(write_file("calculator", "pkg/morelorem.txt", "lorem ipsum dolor sit amet"))
print(write_file("calculator", "/tmp/temp.txt", "this should not be allowed"))
if __name__ == "__main__":
test()