test_non_ascii_paste_text: mock call to urlopen (#5728)

test_non_ascii_paste_text: mock call to urlopen
This commit is contained in:
Bruno Oliveira 2019-08-12 10:56:38 -03:00 committed by GitHub
commit a295a3ddaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: