Browse Source

Add Makefile and update tests

Oz N Tiram 9 years ago
parent
commit
86a0e7d5a7
3 changed files with 11 additions and 0 deletions
  1. 8 0
      Makefile
  2. 0 0
      test/__init__.py
  3. 3 0
      test/test_frank.py

+ 8 - 0
Makefile

@@ -0,0 +1,8 @@
+test:
+	py.test 
+
+coverage:
+	py.test --cov=frank test
+
+.PHONY: test
+

+ 0 - 0
test/__init__.py


+ 3 - 0
test/test_frank.py

@@ -137,6 +137,9 @@ def test_run_action_shell_with_kwargs():
                  results[0].errors()
 
 def test_run_python_code():
+    import sys
+    import os
+    sys.path.insert(0, os.path.dirname(__file__))
     od = ordered_load("""
     run_function_python:
       python: