diff --git a/tests/pipeline/test_pipeline.py b/tests/pipeline/test_pipeline.py index d09ae6795..d5a2d825e 100644 --- a/tests/pipeline/test_pipeline.py +++ b/tests/pipeline/test_pipeline.py @@ -1,4 +1,3 @@ -import logging from pathlib import Path import pytest @@ -18,7 +17,7 @@ @pytest.mark.usefixtures("mock_env") class TestPipeline: - def test_python_api(self): + def test_python_api_generate(self): pipeline = kpops.generate( RESOURCE_PATH / "first-pipeline" / "pipeline.yaml", "tests.pipeline.test_components", @@ -48,36 +47,6 @@ def test_load_pipeline(self, snapshot: SnapshotTest): snapshot.assert_match(enriched_pipeline, "test-pipeline") - def test_generate_with_steps_flag_should_write_log_warning( - self, caplog: pytest.LogCaptureFixture - ): - result = runner.invoke( - app, - [ - "generate", - "--pipeline-base-dir", - str(PIPELINE_BASE_DIR_PATH), - str(RESOURCE_PATH / "first-pipeline/pipeline.yaml"), - "tests.pipeline.test_components", - "--defaults", - str(RESOURCE_PATH), - "--steps", - "a", - ], - catch_exceptions=False, - ) - - assert caplog.record_tuples == [ - ( - "root", - logging.WARNING, - "The following flags are considered only when `--template` is set: \n \ - '--steps'", - ) - ] - - assert result.exit_code == 0 - def test_name_equal_prefix_name_concatenation(self): result = runner.invoke( app,