Skip to content

Commit

Permalink
#1076 Simplified the test, since class D didn't change anything.
Browse files Browse the repository at this point in the history
  • Loading branch information
maaaks committed Apr 10, 2017
1 parent a238b5c commit fe8580c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions playhouse/tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,17 @@ class Meta:
self.assertEqual(ordering, ordered)

def test_declared_dependencies_2(self):
class D(Model):
pass
class C(Model):
d = ForeignKeyField(D)
pass
class B(Model):
c = ForeignKeyField(C)
class A(Model):
class Meta:
depends_on = B,
c = ForeignKeyField(C)
models = [ D, C, B, A ]

models = [ C, B, A ]

ordered = list(models)
for pmodels in permutations(models):
ordering = sort_models_topologically(pmodels)
Expand Down

0 comments on commit fe8580c

Please sign in to comment.