Commit bb6583d0 authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Fix static tests

parent c9ce61a0
...@@ -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):
......
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