|
@@ -15,22 +15,25 @@ class DBConfMigrationUtilsTests(TestCase):
|
|
"Test settings",
|
|
"Test settings",
|
|
'description':
|
|
'description':
|
|
"Those are test settings.",
|
|
"Those are test settings.",
|
|
- 'settings': ({
|
|
|
|
- 'setting': 'fish_name',
|
|
|
|
- 'name': "Fish's name",
|
|
|
|
- 'value': "Eric",
|
|
|
|
- 'field_extra': {
|
|
|
|
- 'min_length': 2,
|
|
|
|
- 'max_length': 255
|
|
|
|
|
|
+ 'settings': [
|
|
|
|
+ {
|
|
|
|
+ 'setting': 'fish_name',
|
|
|
|
+ 'name': "Fish's name",
|
|
|
|
+ 'value': "Eric",
|
|
|
|
+ 'field_extra': {
|
|
|
|
+ 'min_length': 2,
|
|
|
|
+ 'max_length': 255,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- }, {
|
|
|
|
- 'setting': 'fish_license_no',
|
|
|
|
- 'name': "Fish's license number",
|
|
|
|
- 'default_value': '123-456',
|
|
|
|
- 'field_extra': {
|
|
|
|
- 'max_length': 255
|
|
|
|
|
|
+ {
|
|
|
|
+ 'setting': 'fish_license_no',
|
|
|
|
+ 'name': "Fish's license number",
|
|
|
|
+ 'default_value': '123-456',
|
|
|
|
+ 'field_extra': {
|
|
|
|
+ 'max_length': 255,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- }, )
|
|
|
|
|
|
+ ],
|
|
}
|
|
}
|
|
|
|
|
|
migrationutils.migrate_settings_group(apps, self.test_group)
|
|
migrationutils.migrate_settings_group(apps, self.test_group)
|
|
@@ -64,22 +67,25 @@ class DBConfMigrationUtilsTests(TestCase):
|
|
"New test settings",
|
|
"New test settings",
|
|
'description':
|
|
'description':
|
|
"Those are updated test settings.",
|
|
"Those are updated test settings.",
|
|
- 'settings': ({
|
|
|
|
- 'setting': 'fish_new_name',
|
|
|
|
- 'name': "Fish's new name",
|
|
|
|
- 'value': "Eric",
|
|
|
|
- 'field_extra': {
|
|
|
|
- 'min_length': 2,
|
|
|
|
- 'max_length': 255,
|
|
|
|
|
|
+ 'settings': [
|
|
|
|
+ {
|
|
|
|
+ 'setting': 'fish_new_name',
|
|
|
|
+ 'name': "Fish's new name",
|
|
|
|
+ 'value': "Eric",
|
|
|
|
+ 'field_extra': {
|
|
|
|
+ 'min_length': 2,
|
|
|
|
+ 'max_length': 255,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- }, {
|
|
|
|
- 'setting': 'fish_new_license_no',
|
|
|
|
- 'name': "Fish's changed license number",
|
|
|
|
- 'default_value': '123-456',
|
|
|
|
- 'field_extra': {
|
|
|
|
- 'max_length': 255,
|
|
|
|
|
|
+ {
|
|
|
|
+ 'setting': 'fish_new_license_no',
|
|
|
|
+ 'name': "Fish's changed license number",
|
|
|
|
+ 'default_value': '123-456',
|
|
|
|
+ 'field_extra': {
|
|
|
|
+ 'max_length': 255,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- }, ),
|
|
|
|
|
|
+ ],
|
|
}
|
|
}
|
|
|
|
|
|
migrationutils.migrate_settings_group(
|
|
migrationutils.migrate_settings_group(
|