forked from oamg/convert2rhel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work on unittests for get_problematic_pkgs and find_pkg_names
* test_find_pkg_names: Add a few more package names that represent cornercases ("." in package name, starts with a digit, has version numbers in the name, has uppercase characters, has an epoch. * test_get_problematic_pkgs: Move this out of the unittest.TestCase so that we can use pytest's parametrize functionality with it. * Rework the test to use parametrize. Parametrize will run a separate test for each set of assertions, that way we will (1) be able to pinpoint which data caused the problem and (2) will test all of the permutations of calling get_problematic_pkgs instead of failing on the first problem and not knowing whether the other datasets passed. * Found that the Requires dataset should be causing a test failure. Break that into a separate test function that tests a subset of functionality for now with comments on what is going wrong. Opened Issue oamg#378 to address that in the future.
- Loading branch information
Showing
1 changed file
with
97 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters