diff options
-rwxr-xr-x | exts/pip_find_deps_tests.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/exts/pip_find_deps_tests.py b/exts/pip_find_deps_tests.py index 2a060b9..26fab5e 100755 --- a/exts/pip_find_deps_tests.py +++ b/exts/pip_find_deps_tests.py @@ -93,13 +93,16 @@ class ConflictDetectionTests(unittest.TestCase): self.run_conflict_test(reverse(requirements), [reverse(expected_conflict)]) def test_bounds(self): - # ('<', '0.1') conflicts with ('>', '0.1') requirements = list(parse_requirements(['a < 0.1', 'a > 0.1'])) expected_conflict = (('<', parse_version('0.1')), ('>', parse_version('0.1'))) + # ('<', '0.1') conflicts with ('>', '0.1') self.run_conflict_test(requirements, [expected_conflict]) + # ('>', '0.1') conflicts with ('<', '0.1') + self.run_conflict_test(reverse(requirements), [reverse(expected_conflict)]) + if __name__ == '__main__': suite = unittest.TestLoader().loadTestsFromTestCase(ConflictDetectionTests) - unittest.TextTestRunner(verbosity=2).run(suite)
\ No newline at end of file + unittest.TextTestRunner(verbosity=2).run(suite) |