Commit b84fb554 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

wip

parent d71fc3b2
......@@ -250,7 +250,7 @@ partition-folder = %(base_dir)s
instance_config = os.path.join(instance.config_folder, '.jio_documents', 'config.json')
self.assertTrue(os.path.exists(instance_config))
with open(instance_config) as f:
config_content = json.loads(f.read())
config_content = json.load(f)
self.assertEqual(len(config_content), 4)
key_list = ['', 'sample', 'monitor-password', 'cors-domain']
for parameter in config_content:
......
......@@ -339,7 +339,8 @@ class RunPromise(GenericPromise):
self.assertIsNotNone(result1.pop(u'execution-time', None))
self.assertEqual(expected_result, result1)
result2 = json.load(open(result2_file))
with open(result2_file) as f:
result2 = json.load(f)
start_date2 = datetime.strptime(result2['result'].pop('date'), '%Y-%m-%dT%H:%M:%S+0000')
expected_result = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment