Browse Source

fix path in tests

nico 8 years ago
parent
commit
a8032d27e0

+ 1 - 1
kalliope/neurons/ansible_playbook/tests/test_ansible_playbook.py

@@ -31,7 +31,7 @@ class TestAnsible_Playbook(unittest.TestCase):
         This test will use an ansible playbook the create a file. We check that the file has been created
         """
         param = {
-            "task_file": "./test_ansible_playbook_neuron.yml"
+            "task_file": "kalliope/neurons/ansible_playbook/tests/test_ansible_playbook_neuron.yml"
         }
 
         Ansible_playbook(**param)

+ 3 - 3
kalliope/neurons/script/tests/test_script.py

@@ -64,7 +64,7 @@ class TestScript(unittest.TestCase):
         Test we can run a script
         """
         param = {
-            "path": "./test_script.sh"
+            "path": "kalliope/neurons/script/tests/test_script.sh"
         }
 
         Script(**param)
@@ -78,7 +78,7 @@ class TestScript(unittest.TestCase):
         Test we can run a script asynchronously
         """
         param = {
-            "path": "./test_script.sh",
+            "path": "kalliope/neurons/script/tests/test_script.sh",
             "async": True
         }
 
@@ -101,7 +101,7 @@ class TestScript(unittest.TestCase):
 
         # get the output with the neuron
         parameters = {
-            "path": "./test_script_cat.sh",
+            "path": "kalliope/neurons/script/tests/test_script_cat.sh",
         }
 
         script = Script(**parameters)

+ 1 - 1
kalliope/neurons/uri/tests/test_uri_neuron.py

@@ -163,7 +163,7 @@ class TestUri(unittest.TestCase):
         parameters = {
             "url": self.test_url,
             "method": "POST",
-            "data_from_file": "data_post_test.json",
+            "data_from_file": "kalliope/neurons/uri/tests/data_post_test.json",
             "headers": {
                 "Content-Type": 'application/json'
             }