Quellcode durchsuchen

Remove test file per maintainer feedback

Removed tests/test_traefik_template.py as requested by @ChristianLempa.
The main fix (removing duplicate --ping.entryPoint=ping line) remains in place.

Co-authored-by: ChristianLempa <28359525+ChristianLempa@users.noreply.github.com>
copilot-swe-agent[bot] vor 3 Tagen
Ursprung
Commit
e75f9f5207
1 geänderte Dateien mit 0 neuen und 65 gelöschten Zeilen
  1. 0 65
      tests/test_traefik_template.py

+ 0 - 65
tests/test_traefik_template.py

@@ -1,65 +0,0 @@
-"""Test for Traefik template to ensure no duplicate command arguments."""
-
-import subprocess
-import tempfile
-from pathlib import Path
-
-
-def _generate_traefik_template(output_dir: Path) -> None:
-    """Helper function to generate traefik template.
-
-    Args:
-        output_dir: Directory where template should be generated
-    """
-    subprocess.run(
-        [
-            "python3",
-            "-m",
-            "cli",
-            "compose",
-            "generate",
-            "traefik",
-            "--no-interactive",
-            "-o",
-            str(output_dir),
-            "--var",
-            "traefik_tls_acme_email=test@example.com",
-        ],
-        capture_output=True,
-        text=True,
-        check=True,
-    )
-
-
-def test_traefik_no_duplicate_ping_entrypoint():
-    """Test that the traefik template does not generate duplicate --ping.entryPoint arguments."""
-    # Generate the template
-    with tempfile.TemporaryDirectory() as tmpdir:
-        output_dir = Path(tmpdir)
-        _generate_traefik_template(output_dir)
-
-        # Read the generated compose.yaml
-        compose_file = output_dir / "compose.yaml"
-        assert compose_file.exists(), "compose.yaml not generated"
-
-        content = compose_file.read_text()
-
-        # Check for duplicate ping.entryPoint entries
-        ping_entries = [line for line in content.split("\n") if "--ping.entryPoint=ping" in line]
-
-        # Should have exactly one entry
-        assert len(ping_entries) == 1, (
-            f"Expected exactly 1 occurrence of '--ping.entryPoint=ping', "
-            f"but found {len(ping_entries)}:\n" + "\n".join(ping_entries)
-        )
-
-
-def test_traefik_template_renders_successfully():
-    """Test that the traefik template renders without errors."""
-    # Generate the template
-    with tempfile.TemporaryDirectory() as tmpdir:
-        output_dir = Path(tmpdir)
-        _generate_traefik_template(output_dir)
-
-        # Verify compose.yaml exists (main file)
-        assert (output_dir / "compose.yaml").exists(), "compose.yaml not generated"