def test_memory(self):
        """
        Test that the memory endpoint returns the expected keys when debug API is enabled.
        """
        with patch.dict('os.environ', {EnvVars.MARQO_ENABLE_DEBUG_API: 'TRUE'}):
            response = self.client.get("/memory")
            data = response.json()
            assert set(data.keys()) == {"memory_used", "stats"}

        Test that the memory endpoint returns the expected keys when debug API is enabled.
        
tests/integ_tests/tensor_search/test_api.py