selenium_fixture.py 文件源码

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

项目:wagtail-startproject 作者: leukeleu 项目源码 文件源码
def create_fixture(self):
        """Create the fixture using the dumpdata command"""

        excluded = [
            'admin',
            'auth.Permission',
            'contenttypes',
            'sessions',
            'wagtailcore.grouppagepermission',
            'wagtailcore.groupcollectionpermission',
        ]

        path = os.path.join(settings.BASE_DIR, 'tests/fixtures/basic_site.json')

        call_command(
            'dumpdata',
            exclude=excluded,
            natural_foreign=True,
            indent=2,
            output=path
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号