def test_memory_disabled_403(self):
        """
        Test that the memory endpoint returns 403 when debug API is disabled explicitly.
        """
        with patch.dict('os.environ', {EnvVars.MARQO_ENABLE_DEBUG_API: 'FALSE'}):
            response = self.client.get("/memory")
            self.assertEqual(response.status_code, 403)

        Test that the memory endpoint returns 403 when debug API is disabled explicitly.
        
tests/integ_tests/tensor_search/test_api.py