From 0db9dade653d9fbaf830cefaf305c25193837b15 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 10 Aug 2019 23:30:49 +0200 Subject: [PATCH] test_non_ascii_paste_text: mock call to urlopen Likely to fix flaky coverage due to requests failing sometimes. Ref: https://codecov.io/gh/pytest-dev/pytest/compare/f7e81dab9aa8d57498511e1b5655b53cbfbed0d0...83a1f4bd668fe337d42f909cc2ef2d8d986e9748/changes --- testing/test_pastebin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/test_pastebin.py b/testing/test_pastebin.py index fd443ed40..9afa1e23f 100644 --- a/testing/test_pastebin.py +++ b/testing/test_pastebin.py @@ -55,7 +55,7 @@ class TestPasteCapture: ] ) - def test_non_ascii_paste_text(self, testdir): + def test_non_ascii_paste_text(self, testdir, pastebinlist): """Make sure that text which contains non-ascii characters is pasted correctly. See #1219. """ @@ -74,6 +74,7 @@ class TestPasteCapture: "*Sending information to Paste Service*", ] ) + assert len(pastebinlist) == 1 class TestPaste: