1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
1212# or implied. See the License for the specific language governing
1313# permissions and limitations under the License.
14- """Unit tests for serving app functionality."""
14+ """Unit tests for deployment app functionality."""
1515
1616from __future__ import annotations
1717
@@ -57,7 +57,7 @@ class MockWeatherRequest(BaseModel):
5757
5858@pytest .fixture
5959def mock_service (mocker : MockerFixture ) -> PipelineDeploymentService :
60- """Mock pipeline serving service configured for the app tests."""
60+ """Mock pipeline deployment service configured for the app tests."""
6161
6262 service = cast (
6363 PipelineDeploymentService ,
@@ -114,7 +114,7 @@ def mock_service(mocker: MockerFixture) -> PipelineDeploymentService:
114114 return service
115115
116116
117- class TestServingAppRoutes :
117+ class TestDeploymentAppRoutes :
118118 """Test FastAPI app routes."""
119119
120120 def test_root_endpoint (
@@ -236,7 +236,7 @@ def test_get_pipeline_service_returns_current_instance(
236236 assert get_pipeline_service () is mock_service
237237
238238
239- class TestServingAppInvoke :
239+ class TestDeploymentAppInvoke :
240240 """Test pipeline invocation via FastAPI."""
241241
242242 def test_invoke_endpoint_executes_service (
@@ -255,7 +255,7 @@ def test_invoke_endpoint_executes_service(
255255 mock_service .execute_pipeline .assert_called_once ()
256256 request_arg = mock_service .execute_pipeline .call_args .args [0 ]
257257 assert request_arg .parameters .city == "Paris"
258- assert request_arg .use_in_memory is False
258+ assert request_arg .skip_artifact_materialization is False
259259
260260 def test_invoke_endpoint_validation_error (
261261 self , mock_service : PipelineDeploymentService
@@ -299,7 +299,7 @@ def test_verify_token_with_auth_disabled(
299299 assert verify_token (None ) is None
300300
301301
302- class TestServingAppLifecycle :
302+ class TestDeploymentAppLifecycle :
303303 """Test app lifecycle management."""
304304
305305 def test_lifespan_test_mode (self , monkeypatch : pytest .MonkeyPatch ) -> None :
@@ -358,7 +358,7 @@ async def _run() -> None:
358358 asyncio .run (_run ())
359359
360360
361- class TestServingAppErrorHandling :
361+ class TestDeploymentAppErrorHandling :
362362 """Test app error handling."""
363363
364364 def test_value_error_handler (self ) -> None :
0 commit comments