async def METHOD_NAME(self):
    with self.assertRaisesRegex(ConfigurationError, "No app with name 'app' registered."):
        await Tortoise.init(
            {
                "connections": {
                    "default": {
                        "engine": "tortoise.backends.sqlite",
                        "credentials": {"file_path": ":memory:"},
                    }
                },
                "apps": {
                    "models": {
                        "models": ["tests.model_setup.model_bad_rel1"],
                        "default_connection": "default",
                    }
                },
            }
        )