Skip to content

Commit

Permalink
Merge pull request #76 from tisdall/pep8
Browse files Browse the repository at this point in the history
more PEP8 fixes to the test suite
  • Loading branch information
tisdall committed Feb 9, 2015
2 parents c28ee2b + 9b37830 commit ff94657
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,6 @@ def is_equal_schema(self, schema, schema2, schema_path=None):
msg=".".join(schema_path))
self.is_equal_schema(node, schema2.children[i], schema_path[:])


def test_specify_order_fields(self):
"""
Test this issue:
Expand All @@ -1063,7 +1062,6 @@ class MyClass(Base):
self.assertEqual(['id', 'job_status'], [x.name for x in schema])
self.assertNotIn('foo', schema)


def test_non_text_includes(self):
Base = declarative_base()

Expand All @@ -1079,7 +1077,12 @@ class MyClass(Base):
column = colander.SchemaNode(typ,
name='customfield')
schema = SQLAlchemySchemaNode(MyClass,
includes=['foo', 'job_status', column, 'id'])
includes=[
'foo',
'job_status',
column,
'id'
])
self.assertEqual(['job_status', 'customfield', 'id'],
[x.name for x in schema])
self.assertNotIn('foo', schema)

0 comments on commit ff94657

Please sign in to comment.