Skip to content

Commit 7f25469

Browse files
committed
Drop the group/person/role global fixtures, the fixture loader in
Django 1.6 refuses to load them because they have dangling foreign keys, and in rewriting them it turns out it is easier to do so in code - so refactor the test data generation code to have a separate function with the unchanging base data and call that from the global fixture setup - Legacy-Id: 6917
1 parent 81e5ced commit 7f25469

5 files changed

Lines changed: 96 additions & 281 deletions

File tree

ietf/group/fixtures/groups.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

ietf/group/fixtures/roles.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

ietf/person/fixtures/persons.json

Lines changed: 0 additions & 45 deletions
This file was deleted.

ietf/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
TEST_RUNNER = 'ietf.utils.test_runner.IetfTestRunner'
221221

222222
# Fixtures which will be loaded before testing starts
223-
GLOBAL_TEST_FIXTURES = [ 'names','groups','persons', 'roles']
223+
GLOBAL_TEST_FIXTURES = [ 'names','ietf.utils.test_data.make_immutable_base_data' ]
224224

225225
TEST_DIFF_FAILURE_DIR = "/tmp/test/failure/"
226226

0 commit comments

Comments
 (0)