rm redundant tests

Signed-off-by: Evedel <svbiriukov@gmail.com>
This commit is contained in:
Evedel 2023-06-11 15:20:14 +10:00 committed by Muayyad Alsadi
parent bc9168b039
commit 06587c1dca
2 changed files with 1 additions and 20 deletions

View File

@ -1627,7 +1627,7 @@ class PodmanCompose:
compose.get("services", {}), set(args.profile)
)
compose["services"] = resolved_services
if not args.no_normalize:
if not getattr(args, "no_normalize", None):
compose = normalize_final(compose, self.dirname)
self.merged_yaml = yaml.safe_dump(compose)
merged_json_b = json.dumps(compose, separators=(",", ":")).encode("utf-8")

View File

@ -99,25 +99,6 @@ test_cases_simple_normalization = [
]
#
# [service.build] is not normalised before coompose files are merged
#
def test_pre_merge_normalize_service_does_not_affect_build_section() -> None:
for test_input, _ in copy.deepcopy(test_cases_simple_normalization):
expected_service = copy.deepcopy(test_input)
actual_service = normalize_service(test_input)
assert expected_service == actual_service
def test_pre_merge_normalize_does_not_affect_build_section() -> None:
for test_input, _ in copy.deepcopy(test_cases_simple_normalization):
expected_result = copy.deepcopy(test_input)
compose_test = {"services": {"test-service": test_input}}
compose_expected = {"services": {"test-service": expected_result}}
actual_compose = normalize(compose_test)
assert compose_expected == actual_compose
#
# [service.build] is normalised after merges
#