add write_file and run_python_file with tests
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user