Commit c3acb9c3 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][docker_databases_provider] Fix writing JSON to binary file

parent 6d6c8073
...@@ -134,7 +134,8 @@ class TestDatabasesProvider(unittest.TestCase): ...@@ -134,7 +134,8 @@ class TestDatabasesProvider(unittest.TestCase):
def start_databases_provider(self, configuration): def start_databases_provider(self, configuration):
with open(os.path.join(self.working_dir, 'configuration.json'), 'wb') as f: with open(os.path.join(self.working_dir, 'configuration.json'), 'wb') as f:
simplejson.dump(configuration, f, indent=4) data = simplejson.dumps(configuration, indent=4)
f.write(data.encode('utf-8'))
working_prefix = os.path.join(self.working_dir, 'prefix') working_prefix = os.path.join(self.working_dir, 'prefix')
if not os.path.exists(working_prefix): if not os.path.exists(working_prefix):
......
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