mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-10 14:18:04 +02:00
@ -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
|
||||
#
|
||||
|
Reference in New Issue
Block a user