diff options
author | 2018-05-30 19:52:07 +0200 | |
---|---|---|
committer | 2018-05-30 19:52:07 +0200 | |
commit | 7f756fd7f709bc74b3eb558dccb44607844fedb4 (patch) | |
tree | 5844b9023466373233094a5de2ae3c192dd9b67b /tests | |
parent | typo in debug output (diff) |
secure python execution
make snekbox a class
adds nsjail 2.5 (compiled on alpine 3.7)
execute python code via nsjail
Diffstat (limited to 'tests')
-rw-r--r-- | tests/__init__.py | 1 | ||||
-rw-r--r-- | tests/test_snekbox.py | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..792d600 --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1 @@ +# diff --git a/tests/test_snekbox.py b/tests/test_snekbox.py new file mode 100644 index 0000000..5c4d1c7 --- /dev/null +++ b/tests/test_snekbox.py @@ -0,0 +1,7 @@ +import unittest +import pytest + +from snekbox import Snekbox +snek = Snekbox() + +# Write some tests at some point |