aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Christopher Baklid <[email protected]>2018-05-30 19:52:07 +0200
committerGravatar GitHub <[email protected]>2018-05-30 19:52:07 +0200
commit7f756fd7f709bc74b3eb558dccb44607844fedb4 (patch)
tree5844b9023466373233094a5de2ae3c192dd9b67b /tests
parenttypo 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__.py1
-rw-r--r--tests/test_snekbox.py7
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