#23640: StaticLiveServerTestCase does not properly respect data migrations -------------------------------------+------------------------------------- Reporter: eldamir | Owner: gchp Type: Bug | Status: assigned Component: Testing framework | Version: 1.7 Severity: Normal | Resolution: Keywords: data migration, | Triage Stage: Accepted functional tests | Needs documentation: 0 Has patch: 0 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by gchp): It appears that this problem only exists with migrations. When I use fixtures generated by {{{manage.py dumpdata}}} the problem goes away. The example below works without issue. {{{ class MyTests(TransactionTestCase): fixtures = ['data.json'] def test_fixtures_exist(self): self.assertEqual(MyModel.objects.count(), 4) def test_fixtures_still_exist(self): self.assertEqual(MyModel.objects.count(), 4) }}} -- Ticket URL: <https://code.djangoproject.com/ticket/23640#comment:6> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.6a1e1e22a0233d0e59e51ff8fd79132c%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.