Пример #1
0
    def setup_databases(self, **kwargs):
        dbs = super(TestDataTestRunner, self).setup_databases(**kwargs)

        if not self.check_for_wagtail_root():
            self.setup_wagtail_root()

        initial_data.run()
        return dbs
Пример #2
0
    def setup_databases(self, **kwargs):
        dbs = super(TestRunner, self).setup_databases(**kwargs)

        # Set up additional required test data that isn't contained in data
        # migrations, for example an admin user.
        initial_data.run()

        return dbs
Пример #3
0
    def setup_databases(self, **kwargs):
        dbs = super(TestDataTestRunner, self).setup_databases(**kwargs)

        # Ensure that certain key data migrations are always run, even if
        # tests are being run without migrations, e.g. through use of
        # settings.test_nomigrations.
        self.run_required_data_migrations()

        # Set up additional required test data that isn't contained in data
        # migrations, for example an admin user.
        initial_data.run()

        return dbs
Пример #4
0
    def setup_databases(self, **kwargs):
        dbs = super(TestRunner, self).setup_databases(**kwargs)

        # Ensure that certain key data migrations are always run even if
        # tests are being run with most migrations disabled (e.g. using
        # settings.MIGRATION_MODULES).
        self.run_required_data_migrations()

        # Set up additional required test data that isn't contained in data
        # migrations, for example an admin user.
        initial_data.run()

        return dbs
Пример #5
0
    def setup_databases(self, **kwargs):
        dbs = super(TestDataTestRunner, self).setup_databases(**kwargs)

        # Ensure that certain key data migrations are always run, even if
        # tests are being run without migrations, e.g. through use of
        # settings.test_nomigrations.
        self.run_required_data_migrations()

        # Set up additional required test data that isn't contained in data
        # migrations, for example an admin user.
        initial_data.run()

        return dbs