From 16ed35fafc0583b485a0289afda632f8261ecc96 Mon Sep 17 00:00:00 2001 From: Brandon Taylor Date: Tue, 7 Oct 2014 13:53:19 -0400 Subject: Fixed #23612 -- Normalized fixuture paths to allow referencing relative paths on Windows. --- tests/fixtures_regress/tests.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/fixtures_regress') diff --git a/tests/fixtures_regress/tests.py b/tests/fixtures_regress/tests.py index c01411e158..cc95a41b10 100644 --- a/tests/fixtures_regress/tests.py +++ b/tests/fixtures_regress/tests.py @@ -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.") -- cgit v1.3