Beispiel #1
0
 def test_v0_empty_rename_entries(self):
     result = renamecolumns.migrate_params({
         'custom_list': False,
         'list_string': 'A\nB\nC',
         'rename-entries': '',
     })
     self.assertEqual(result, {
         'custom_list': False,
         'list_string': 'A\nB\nC',
         'renames': {},
     })
Beispiel #2
0
 def test_v0_empty_rename_entries(self):
     result = migrate_params({
         "custom_list": False,
         "list_string": "A\nB\nC",
         "rename-entries": ""
     })
     self.assertEqual(result, {
         "custom_list": False,
         "list_string": "A\nB\nC",
         "renames": {}
     })
 def test_v0(self):
     result = migrate_params({
         'custom_list': False,
         'list_string': 'A\nB\nC',
         'rename-entries': '{"A":"B","B":"C"}',
     })
     self.assertEqual(
         result, {
             'custom_list': False,
             'list_string': 'A\nB\nC',
             'renames': {
                 'A': 'B',
                 'B': 'C'
             },
         })
Beispiel #4
0
 def test_v0(self):
     result = migrate_params({
         "custom_list": False,
         "list_string": "A\nB\nC",
         "rename-entries": '{"A":"B","B":"C"}',
     })
     self.assertEqual(
         result,
         {
             "custom_list": False,
             "list_string": "A\nB\nC",
             "renames": {
                 "A": "B",
                 "B": "C"
             },
         },
     )
Beispiel #5
0
 def test_v1(self):
     result = renamecolumns.migrate_params({
         'custom_list': False,
         'list_string': 'A\nB\nC',
         'renames': {
             'A': 'B',
             'B': 'C'
         },
     })
     self.assertEqual(
         result, {
             'custom_list': False,
             'list_string': 'A\nB\nC',
             'renames': {
                 'A': 'B',
                 'B': 'C'
             },
         })