Переглянути джерело

Add Makefile and update tests

Oz N Tiram 9 роки тому
батько
коміт
86a0e7d5a7
3 змінених файлів з 11 додано та 0 видалено
  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()
                  results[0].errors()
 
 
 def test_run_python_code():
 def test_run_python_code():
+    import sys
+    import os
+    sys.path.insert(0, os.path.dirname(__file__))
     od = ordered_load("""
     od = ordered_load("""
     run_function_python:
     run_function_python:
       python:
       python: