Skip to content

Commit 06587c1

Browse files
Evedelmuayyad-alsadi
authored andcommitted
rm redundant tests
Signed-off-by: Evedel <svbiriukov@gmail.com>
1 parent bc9168b commit 06587c1

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

podman_compose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ def _parse_compose_file(self):
16271627
compose.get("services", {}), set(args.profile)
16281628
)
16291629
compose["services"] = resolved_services
1630-
if not args.no_normalize:
1630+
if not getattr(args, "no_normalize", None):
16311631
compose = normalize_final(compose, self.dirname)
16321632
self.merged_yaml = yaml.safe_dump(compose)
16331633
merged_json_b = json.dumps(compose, separators=(",", ":")).encode("utf-8")

pytests/test_normalize_final_build.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -99,25 +99,6 @@
9999
]
100100

101101

102-
#
103-
# [service.build] is not normalised before coompose files are merged
104-
#
105-
def test_pre_merge_normalize_service_does_not_affect_build_section() -> None:
106-
for test_input, _ in copy.deepcopy(test_cases_simple_normalization):
107-
expected_service = copy.deepcopy(test_input)
108-
actual_service = normalize_service(test_input)
109-
assert expected_service == actual_service
110-
111-
112-
def test_pre_merge_normalize_does_not_affect_build_section() -> None:
113-
for test_input, _ in copy.deepcopy(test_cases_simple_normalization):
114-
expected_result = copy.deepcopy(test_input)
115-
compose_test = {"services": {"test-service": test_input}}
116-
compose_expected = {"services": {"test-service": expected_result}}
117-
actual_compose = normalize(compose_test)
118-
assert compose_expected == actual_compose
119-
120-
121102
#
122103
# [service.build] is normalised after merges
123104
#

0 commit comments

Comments
 (0)