flake8 compliance
This commit is contained in:
@@ -53,7 +53,7 @@ parent_fixture = {
|
||||
child_fixture = {
|
||||
'name': 'Child',
|
||||
'properties': {
|
||||
'age': {'type':'integer'},
|
||||
'age': {'type': 'integer'},
|
||||
'mother': {'type': 'object'}
|
||||
},
|
||||
'required': ['age', 'mother']
|
||||
@@ -258,11 +258,14 @@ class TestCore(unittest.TestCase):
|
||||
|
||||
def test_resolver(self):
|
||||
from jsonschema import RefResolver
|
||||
schemas_path = 'file://' + os.path.join(os.path.dirname(__file__), 'schemas/')
|
||||
dirname = os.path.dirname(__file__)
|
||||
schemas_path = 'file://' + os.path.join(dirname, 'schemas/')
|
||||
resolver = RefResolver(schemas_path, None)
|
||||
|
||||
country_schema_file = open(os.path.join(os.path.dirname(__file__), 'schemas/') + 'country.json')
|
||||
person_schema_file = open(os.path.join(os.path.dirname(__file__), 'schemas/') + 'person.json')
|
||||
country_schema_file = \
|
||||
open(os.path.join(dirname, 'schemas/') + 'country.json')
|
||||
person_schema_file = \
|
||||
open(os.path.join(dirname, 'schemas/') + 'person.json')
|
||||
|
||||
country_schema = json.load(country_schema_file)
|
||||
person_schema = json.load(person_schema_file)
|
||||
|
||||
@@ -14,6 +14,5 @@
|
||||
|
||||
"""Public-facing Warlock API"""
|
||||
|
||||
# pylint: disable=W0611
|
||||
from warlock.core import model_factory
|
||||
from warlock.exceptions import InvalidOperation
|
||||
from warlock.core import model_factory # NOQA
|
||||
from warlock.exceptions import InvalidOperation # NOQA
|
||||
|
||||
@@ -78,7 +78,7 @@ class Model(dict):
|
||||
def __delattr__(self, key):
|
||||
self.__delitem__(key)
|
||||
|
||||
### BEGIN dict compatibility methods ###
|
||||
# BEGIN dict compatibility methods
|
||||
|
||||
def clear(self):
|
||||
raise exceptions.InvalidOperation()
|
||||
@@ -119,7 +119,7 @@ class Model(dict):
|
||||
def values(self):
|
||||
return copy.deepcopy(dict(self)).values()
|
||||
|
||||
### END dict compatibility methods ###
|
||||
# END dict compatibility methods
|
||||
|
||||
@property
|
||||
def patch(self):
|
||||
|
||||
Reference in New Issue
Block a user