Tests: used relative path for configuration.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user