def setUp(self):
"""
Set up the test class.
For the import to run an election has to exist in the
database.
"""
call_command('import_basedata')
test_path = setup_path = os.path.dirname(os.path.realpath(__file__))
results_file = test_path + '/data/example_01.json'
mapping_file = test_path + '/data/example_config.json'
call_command('import_results', results_file, mapping_file)
评论列表
文章目录