From 316a9b62038108a3cd35890ac1b0de6904760572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Mon, 5 Aug 2024 16:47:28 +0200 Subject: [PATCH] test_depsolve.py: test depsolving conflicting packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a test case for checking the error reason and message when depsolving conflicting packages. Signed-off-by: Tomáš Hozza --- tools/test/test_depsolve.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/test/test_depsolve.py b/tools/test/test_depsolve.py index 7b9a7e9a..7c5506cd 100644 --- a/tools/test/test_depsolve.py +++ b/tools/test/test_depsolve.py @@ -185,6 +185,21 @@ test_cases = [ "error_kind": "MarkingErrors", "error_reason_re": r".*non-existing-package.*", }, + # Test depsolving error due to conflicting packages + { + "id": "error_conflicting_pkgs", + "transactions": [ + { + "package-specs": [ + "curl", + "curl-minimal", + ], + }, + ], + "error": True, + "error_kind": "DepsolveError", + "error_reason_re": r".*package curl-minimal-.*\.el9\.x86_64.*conflicts with curl provided by curl-.*\.el9\.x86_64.*", + }, ]