jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/730525 )
Change subject: [tests] Split TestFilterUnique.test_stop method ......................................................................
[tests] Split TestFilterUnique.test_stop method
Change-Id: I2ead233f3ea9b0ae2297290c1fe6ae4f5413465b --- M tests/tools_tests.py 1 file changed, 3 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/tools_tests.py b/tests/tools_tests.py index 66a6bb5..6bcb28b 100644 --- a/tests/tools_tests.py +++ b/tests/tools_tests.py @@ -576,7 +576,7 @@ self.assertEqual(deduped_out, [1, 3, 2, 1, 1, 4]) self.assertEqual(deduped, {2, 4})
- def test_stop(self): + def test_stop_contains(self): """Test filter_unique with an ignoring container.""" deduped = ContainsStopList() deduped.stop_list = [2] @@ -589,6 +589,8 @@ with self.assertRaises(StopIteration): next(deduper)
+ def test_stop_add(self): + """Test filter_unique with an ignoring container during add call.""" deduped = AddStopList() deduped.stop_list = [4] deduper = tools.filter_unique(self.ints, container=deduped)
pywikibot-commits@lists.wikimedia.org