Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simone Rossi
main
Commits
bb6583d0
Commit
bb6583d0
authored
Nov 29, 2017
by
Daniele Venzano
Browse files
Fix static tests
parent
c9ce61a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
zoe_lib/tests/applications_test.py
View file @
bb6583d0
...
@@ -20,7 +20,7 @@ import json
...
@@ -20,7 +20,7 @@ import json
import
pytest
import
pytest
from
zoe_lib
import
applications
from
zoe_lib
import
applications
from
zoe_lib.tests.config_mock
import
zoe_configuration
from
zoe_lib.tests.config_mock
import
zoe_configuration
# pylint: disable=unused-import
from
zoe_lib.config
import
load_configuration
from
zoe_lib.config
import
load_configuration
...
@@ -28,7 +28,7 @@ class TestApplicationsMethods:
...
@@ -28,7 +28,7 @@ class TestApplicationsMethods:
"""Application validation tests."""
"""Application validation tests."""
@
pytest
.
fixture
(
autouse
=
True
)
@
pytest
.
fixture
(
autouse
=
True
)
def
mock_config
(
self
,
zoe_configuration
):
def
mock_config
(
self
,
zoe_configuration
):
# pylint: disable=redefined-outer-name
"""Fixture for mock config method."""
"""Fixture for mock config method."""
zoe_configuration
.
max_core_limit
=
32
zoe_configuration
.
max_core_limit
=
32
zoe_configuration
.
max_memory_limit
=
64
zoe_configuration
.
max_memory_limit
=
64
...
@@ -36,12 +36,12 @@ class TestApplicationsMethods:
...
@@ -36,12 +36,12 @@ class TestApplicationsMethods:
def
test_pass_for_zapp
(
self
):
def
test_pass_for_zapp
(
self
):
"""Test zapp validation code."""
"""Test zapp validation code."""
zapp_fp
=
json
.
load
(
open
(
'tests/zapp.json'
,
'r'
))
zapp_fp
=
json
.
load
(
open
(
'
integration_
tests/zapp.json'
,
'r'
))
applications
.
app_validate
(
zapp_fp
)
applications
.
app_validate
(
zapp_fp
)
def
test_pass_for_complex_zapp
(
self
):
def
test_pass_for_complex_zapp
(
self
):
"""Test zapp validation code."""
"""Test zapp validation code."""
zapp_fp
=
json
.
load
(
open
(
'tests/complex_zapp.json'
,
'r'
))
zapp_fp
=
json
.
load
(
open
(
'
integration_
tests/complex_zapp.json'
,
'r'
))
applications
.
app_validate
(
zapp_fp
)
applications
.
app_validate
(
zapp_fp
)
def
test_fails_for_zapp
(
self
):
def
test_fails_for_zapp
(
self
):
...
...
Write
Preview
Markdown
is supported
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