Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
e56b22e3
Commit
e56b22e3
authored
Mar 20, 2019
by
Samuel GAIST
Browse files
[test][docker_databases_provider] Import simplejson as json to make it easy to swap
parent
655189fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/test/test_docker_databases_provider.py
View file @
e56b22e3
...
...
@@ -40,7 +40,7 @@ import os
import
sys
import
logging
import
unittest
import
simplejson
import
simplejson
as
json
import
tempfile
import
shutil
import
zmq
...
...
@@ -128,7 +128,7 @@ class TestDatabasesProvider(unittest.TestCase):
def
start_databases_provider
(
self
,
configuration
):
with
open
(
os
.
path
.
join
(
self
.
working_dir
,
"configuration.json"
),
"wb"
)
as
f
:
data
=
simple
json
.
dumps
(
configuration
,
indent
=
4
)
data
=
json
.
dumps
(
configuration
,
indent
=
4
)
f
.
write
(
data
.
encode
(
"utf-8"
))
working_prefix
=
os
.
path
.
join
(
self
.
working_dir
,
"prefix"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment