Skip to content

Commit

Permalink
modules: Test getting profiles of a module
Browse files Browse the repository at this point in the history
  • Loading branch information
pkratoch committed Sep 25, 2023
1 parent c425155 commit fab191b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/libdnf5/module/test_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ void ModuleTest::test_load() {
"waiting for the build system to actually start compiling code."),
meson.get_description());
CPPUNIT_ASSERT_EQUAL(std::string("ninja;platform:[f29,f30,f31]"), meson.get_module_dependencies_string());
CPPUNIT_ASSERT_EQUAL((size_t)1, meson.get_profiles().size());
CPPUNIT_ASSERT_EQUAL(std::string("default"), meson.get_profiles()[0].get_name());

CPPUNIT_ASSERT_EQUAL(std::string(""), module_sack->get_default_stream("meson"));
CPPUNIT_ASSERT_EQUAL(std::string("main"), module_sack->get_default_stream("berries"));
Expand Down

0 comments on commit fab191b

Please sign in to comment.