test_import.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:offenewahlen-nrw17 作者: OKFNat 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号