(self, app_config_name)
| 629 | editor.remove_procedure("test_procedure") |
| 630 | |
| 631 | def run_setup(self, app_config_name): |
| 632 | custom_settings = override_settings( |
| 633 | INSTALLED_APPS=[f"apps.query_performing_app.apps.{app_config_name}"] |
| 634 | ) |
| 635 | custom_settings.enable() |
| 636 | old_stored_app_configs = apps.stored_app_configs |
| 637 | apps.stored_app_configs = [] |
| 638 | try: |
| 639 | with patch.multiple(apps, ready=False, loading=False, app_configs={}): |
| 640 | with self.assertWarnsMessage(RuntimeWarning, self.expected_msg): |
| 641 | django.setup() |
| 642 | |
| 643 | app_config = apps.get_app_config("query_performing_app") |
| 644 | return app_config.query_results |
| 645 | finally: |
| 646 | setattr(apps, "stored_app_configs", old_stored_app_configs) |
| 647 | custom_settings.disable() |
no test coverage detected