mirror of
https://github.com/openhop-dev/openhop_repeater.git
synced 2026-10-23 21:43:02 +00:00
29 lines
686 B
Python
29 lines
686 B
Python
"""Console is installed through plugins, not fetched during Docker builds."""
|
|
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"relative",
|
|
[
|
|
"dockerfile",
|
|
"docker-compose.build.yml",
|
|
".github/workflows/docker-publish.yml",
|
|
"env.example",
|
|
],
|
|
)
|
|
def test_docker_build_has_no_console_bundle_dependency(relative):
|
|
content = (ROOT / relative).read_text().lower()
|
|
for obsolete in (
|
|
"openhop_console",
|
|
"pymc_console",
|
|
"console_release",
|
|
"pymc-ui-",
|
|
"/opt/pymc_console",
|
|
):
|
|
assert obsolete not in content, (relative, obsolete)
|