summaryrefslogtreecommitdiff
path: root/tests/fixtures_regress
diff options
context:
space:
mode:
authorBrandon Taylor <alsoicode@gmail.com>2014-10-07 13:53:19 -0400
committerTim Graham <timograham@gmail.com>2014-10-09 14:58:20 -0400
commit16ed35fafc0583b485a0289afda632f8261ecc96 (patch)
tree1a5dc1b66304aa1f8278e8a851575f488b8fdc30 /tests/fixtures_regress
parent92a17eaae081a213171b044858d6fc29df2df733 (diff)
downloaddjango-16ed35fafc0583b485a0289afda632f8261ecc96.tar.gz
Fixed #23612 -- Normalized fixuture paths to allow referencing relative paths on Windows.
Diffstat (limited to 'tests/fixtures_regress')
-rw-r--r--tests/fixtures_regress/tests.py12
1 files changed, 12 insertions, 0 deletions
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.")