diff options
| author | Dražen Odobašić <dodobas@candela-it.com> | 2015-09-11 19:33:12 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-12 11:40:50 -0400 |
| commit | b1e33ceceda1e75ff68c7deed8f6659683a195d3 (patch) | |
| tree | e4e446f69194f2dc3c9c7ee3ecf48290ea8d4d31 /tests/migrations/test_optimizer.py | |
| parent | 84b0a8d2aad042fb573df5055b6153770d0929ac (diff) | |
Fixed #23395 -- Limited line lengths to 119 characters.
Diffstat (limited to 'tests/migrations/test_optimizer.py')
| -rw-r--r-- | tests/migrations/test_optimizer.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/migrations/test_optimizer.py b/tests/migrations/test_optimizer.py index 52a26013ec..07341a0c57 100644 --- a/tests/migrations/test_optimizer.py +++ b/tests/migrations/test_optimizer.py @@ -25,9 +25,13 @@ class OptimizerTests(SimpleTestCase): expected = [repr(f.deconstruct()) for f in expected] self.assertEqual(expected, result) if exact is not None and iterations != exact: - raise self.failureException("Optimization did not take exactly %s iterations (it took %s)" % (exact, iterations)) + raise self.failureException( + "Optimization did not take exactly %s iterations (it took %s)" % (exact, iterations) + ) if less_than is not None and iterations >= less_than: - raise self.failureException("Optimization did not take less than %s iterations (it took %s)" % (less_than, iterations)) + raise self.failureException( + "Optimization did not take less than %s iterations (it took %s)" % (less_than, iterations) + ) def assertDoesNotOptimize(self, operations): self.assertOptimizesTo(operations, operations) @@ -280,12 +284,16 @@ class OptimizerTests(SimpleTestCase): [ migrations.CreateModel("Foo", [("name", models.CharField(max_length=255))]), migrations.CreateModel("LinkThrough", []), - migrations.AddField("Foo", "link", models.ManyToManyField("migrations.Link", through="migrations.LinkThrough")), + migrations.AddField( + "Foo", "link", models.ManyToManyField("migrations.Link", through="migrations.LinkThrough") + ), ], [ migrations.CreateModel("Foo", [("name", models.CharField(max_length=255))]), migrations.CreateModel("LinkThrough", []), - migrations.AddField("Foo", "link", models.ManyToManyField("migrations.Link", through="migrations.LinkThrough")), + migrations.AddField( + "Foo", "link", models.ManyToManyField("migrations.Link", through="migrations.LinkThrough") + ), ], ) |
