Scheduler/Webserver should never use Internal API, so calling any method decorated with internal_api_call should still execute them locally
@conf_vars(
        {
            ("core", "database_access_isolation"): "false",
            ("core", "internal_api_url"): "http://localhost:8888",
        }
    )
    def test_get_use_internal_api_disabled(self):
        assert InternalApiConfig.get_use_internal_api() is False
    @conf_vars(
        {
            ("core", "database_access_isolation"): "true",
            ("core", "internal_api_url"): "http://localhost:8888",
        }
    )
    def test_get_use_internal_api_enabled(self):
        assert InternalApiConfig.get_use_internal_api() is True
        assert InternalApiConfig.get_internal_api_endpoint() == "http://localhost:8888/internal_api/v1/rpcapi"
class TestInternalApiCall:
    @staticmethod
    @internal_api_call
    def fake_method() -> str: