diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-09-06 20:18:33 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-09-06 20:18:33 +0300 |
commit | 511a0fa7605e61f90e524edfbcbefa230573e32f (patch) | |
tree | 011538ece353c804605a05452daa344e8be2d2fd /test/test_go_application.py | |
parent | 58d23eb5b4cc15a11fa4550dc165b6be4797525a (diff) | |
download | unit-511a0fa7605e61f90e524edfbcbefa230573e32f.tar.gz unit-511a0fa7605e61f90e524edfbcbefa230573e32f.tar.bz2 |
Tests: used relative path for configuration.
Diffstat (limited to '')
-rw-r--r-- | test/test_go_application.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_go_application.py b/test/test_go_application.py index abc2c4c1..650d1c27 100644 --- a/test/test_go_application.py +++ b/test/test_go_application.py @@ -110,13 +110,13 @@ class TestUnitGoApplication(unit.TestUnitApplicationGo): self.load('command_line_arguments') self.assertIn('error', self.conf(''"a b c", - '/applications/command_line_arguments/arguments'), 'arguments type') + 'applications/command_line_arguments/arguments'), 'arguments type') def test_go_application_command_line_arguments_0(self): self.load('command_line_arguments') self.assertEqual(self.get()['headers']['X-Arg-0'], - self.conf_get('/applications/command_line_arguments/executable'), + self.conf_get('applications/command_line_arguments/executable'), 'argument 0') def test_go_application_command_line_arguments(self): @@ -127,7 +127,7 @@ class TestUnitGoApplication(unit.TestUnitApplicationGo): arg3 = '--debug' self.conf('["' + arg1 + '", "' + arg2 + '", "' + arg3 + '"]', - '/applications/command_line_arguments/arguments') + 'applications/command_line_arguments/arguments') self.assertEqual(self.get()['body'], arg1 + ',' + arg2 + ',' + arg3, 'arguments') @@ -135,7 +135,7 @@ class TestUnitGoApplication(unit.TestUnitApplicationGo): def test_go_application_command_line_arguments_change(self): self.load('command_line_arguments') - args_path = '/applications/command_line_arguments/arguments' + args_path = 'applications/command_line_arguments/arguments' self.conf('["0", "a", "$", ""]', args_path) |