def handle(self, fixture, **options): fixtures = get_available_fixtures(settings.INSTALLED_APPS) fixture = fixtures[tuple(fixture.rsplit(".", 1))] requirements, models = calculate_requirements(fixtures, fixture) # fetch the projects test runner class runner_class = get_runner(settings) FixtureRunner = type("FixtureRunner", (GeneratingSuiteRunner, runner_class), {}) runner = FixtureRunner(requirements, models, options) runner.run_tests()
def calculate_requirements(self, test_func): return calculate_requirements(self.available_fixtures, test_func)