Blame SOURCES/0019-Remove-redundant-test.patch

aea1e4
From eb7217d0a71b92ac0d8c3773caa1a2d3a2c20071 Mon Sep 17 00:00:00 2001
aea1e4
From: Jaroslav Mracek <jmracek@redhat.com>
aea1e4
Date: Thu, 13 May 2021 09:10:42 +0200
aea1e4
Subject: [PATCH 19/19] Remove redundant test
aea1e4
aea1e4
The test is identical to
aea1e4
testGetApplicablePackagesMultipleApplicableCollections().
aea1e4
---
aea1e4
 tests/libdnf/sack/AdvisoryTest.cpp | 11 -----------
aea1e4
 tests/libdnf/sack/AdvisoryTest.hpp |  2 --
aea1e4
 2 files changed, 13 deletions(-)
aea1e4
aea1e4
diff --git a/tests/libdnf/sack/AdvisoryTest.cpp b/tests/libdnf/sack/AdvisoryTest.cpp
aea1e4
index 1abf1a95..f5892634 100644
aea1e4
--- a/tests/libdnf/sack/AdvisoryTest.cpp
aea1e4
+++ b/tests/libdnf/sack/AdvisoryTest.cpp
aea1e4
@@ -91,17 +91,6 @@ void AdvisoryTest::testGetPackages()
aea1e4
     CPPUNIT_ASSERT(pkgsvector.size() == 4);
aea1e4
 }
aea1e4
 
aea1e4
-void AdvisoryTest::testGetApplicablePackagesModulesNotSetup()
aea1e4
-{
aea1e4
-    std::vector<libdnf::AdvisoryPkg> pkgsvector;
aea1e4
-
aea1e4
-    // When modules are not setup all advisory collections are applicable and we get all packages
aea1e4
-    advisory->getApplicablePackages(pkgsvector);
aea1e4
-    CPPUNIT_ASSERT_EQUAL(2, static_cast<int>(pkgsvector.size()));
aea1e4
-    CPPUNIT_ASSERT(!g_strcmp0(pkgsvector[0].getNameString(), "test-perl-DBI"));
aea1e4
-    CPPUNIT_ASSERT(!g_strcmp0(pkgsvector[1].getNameString(), "not-present"));
aea1e4
-}
aea1e4
-
aea1e4
 void AdvisoryTest::testGetApplicablePackagesModulesSetupNoneEnabled()
aea1e4
 {
aea1e4
     std::vector<libdnf::AdvisoryPkg> pkgsvector;
aea1e4
diff --git a/tests/libdnf/sack/AdvisoryTest.hpp b/tests/libdnf/sack/AdvisoryTest.hpp
aea1e4
index 6eb25a57..cb0d8c05 100644
aea1e4
--- a/tests/libdnf/sack/AdvisoryTest.hpp
aea1e4
+++ b/tests/libdnf/sack/AdvisoryTest.hpp
aea1e4
@@ -19,7 +19,6 @@ class AdvisoryTest : public CppUnit::TestCase
aea1e4
         CPPUNIT_TEST(testGetSeverity);
aea1e4
         CPPUNIT_TEST(testGetTitle);
aea1e4
         CPPUNIT_TEST(testGetPackages);
aea1e4
-        CPPUNIT_TEST(testGetApplicablePackagesModulesNotSetup);
aea1e4
         CPPUNIT_TEST(testGetApplicablePackagesModulesSetupNoneEnabled);
aea1e4
         CPPUNIT_TEST(testGetApplicablePackagesOneApplicableCollection);
aea1e4
         CPPUNIT_TEST(testGetApplicablePackagesMultipleApplicableCollections);
aea1e4
@@ -38,7 +37,6 @@ public:
aea1e4
     void testGetSeverity();
aea1e4
     void testGetTitle();
aea1e4
     void testGetPackages();
aea1e4
-    void testGetApplicablePackagesModulesNotSetup();
aea1e4
     void testGetApplicablePackagesModulesSetupNoneEnabled();
aea1e4
     void testGetApplicablePackagesOneApplicableCollection();
aea1e4
     void testGetApplicablePackagesMultipleApplicableCollections();
aea1e4
-- 
aea1e4
2.31.1
aea1e4