1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #23612 -- Normalized fixuture paths to allow referencing relative paths on Windows.

This commit is contained in:
Brandon Taylor
2014-10-07 13:53:19 -04:00
committed by Tim Graham
parent 92a17eaae0
commit 16ed35fafc
2 changed files with 13 additions and 1 deletions

View File

@@ -857,3 +857,15 @@ class TestTicket11101(TransactionTestCase):
self.assertEqual(Thingy.objects.count(), 1)
transaction.set_rollback(True)
self.assertEqual(Thingy.objects.count(), 0)
class TestLoadFixtureFromOtherAppDirectory(TestCase):
"""
#23612 -- fixtures path should be normalized to allow referencing relative
paths on Windows.
"""
fixtures = ['fixtures_regress/fixtures/absolute.json']
def test_fixtures_loaded(self):
count = Absolute.objects.count()
self.assertGreater(count, 0, "Fixtures not loaded properly.")