Skip to content

Commit a295a3d

Browse files
authored
test_non_ascii_paste_text: mock call to urlopen (#5728)
test_non_ascii_paste_text: mock call to urlopen
2 parents 3b3ce0e + 0db9dad commit a295a3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/test_pastebin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_skip():
5555
]
5656
)
5757

58-
def test_non_ascii_paste_text(self, testdir):
58+
def test_non_ascii_paste_text(self, testdir, pastebinlist):
5959
"""Make sure that text which contains non-ascii characters is pasted
6060
correctly. See #1219.
6161
"""
@@ -74,6 +74,7 @@ def test():
7474
"*Sending information to Paste Service*",
7575
]
7676
)
77+
assert len(pastebinlist) == 1
7778

7879

7980
class TestPaste:

0 commit comments

Comments
 (0)