Tests: used relative path for configuration.

This commit is contained in:
Andrey Zelenkov
2018-09-06 20:18:33 +03:00
parent 58d23eb5b4
commit 511a0fa760
11 changed files with 125 additions and 126 deletions

View File

@@ -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)