Skip to content

Commit

Permalink
Remove obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted committed Oct 26, 2023
1 parent d08b7dc commit 2abe23e
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions tests/pipeline/test_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging
from pathlib import Path

import pytest
Expand All @@ -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",
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2abe23e

Please sign in to comment.