test_non_ascii_paste_text: mock call to urlopen

Likely to fix flaky coverage due to requests failing sometimes.
Ref: f7e81dab9a...83a1f4bd66/changes
This commit is contained in:
Daniel Hahler 2019-08-10 23:30:49 +02:00
parent a77c83a4c3
commit 0db9dade65
1 changed files with 2 additions and 1 deletions

View File

@ -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: