Skip to content
GitLab
Menu
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
ff19fd18
Commit
ff19fd18
authored
Mar 14, 2019
by
Samuel GAIST
Browse files
[test][test_database] Code cleanup
parent
ec6242b7
Changes
1
Show whitespace changes
Inline
Side-by-side
beat/core/test/test_database.py
View file @
ff19fd18
...
...
@@ -46,10 +46,10 @@ def test_export():
name
=
"integers_db/1"
obj
=
Database
(
prefix
,
name
)
assert
obj
.
valid
,
"
\n
* %s"
%
"
\n
* "
.
join
(
obj
.
errors
)
nose
.
tools
.
assert_true
(
obj
.
valid
,
"
\n
* %s"
%
"
\n
* "
.
join
(
obj
.
errors
)
)
obj
.
export
(
tmp_prefix
)
# load from tmp_prefix and validates
exported
=
Database
(
tmp_prefix
,
name
)
assert
exported
.
valid
,
"
\n
* %s"
%
"
\n
* "
.
join
(
exported
.
errors
)
nose
.
tools
.
assert_true
(
exported
.
valid
,
"
\n
* %s"
%
"
\n
* "
.
join
(
exported
.
errors
)
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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