summaryrefslogtreecommitdiff
path: root/testing/test_pastebin.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-05-01 14:40:17 +0300
committerRan Benita <ran@unusedvar.com>2020-06-05 11:34:20 +0300
commit54ad048be7182018e70479bd3d9b88bcb6376c00 (patch)
tree3681812c6c7e9dd9acd7c27a9b369ee860835e13 /testing/test_pastebin.py
parent71dfdca4df6961460653c265026e194fbcaebef2 (diff)
downloadpytest-54ad048be7182018e70479bd3d9b88bcb6376c00.tar.gz
Enable check_untyped_defs mypy option for testing/ too
Diffstat (limited to 'testing/test_pastebin.py')
-rw-r--r--testing/test_pastebin.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/test_pastebin.py b/testing/test_pastebin.py
index 86a42f9e8..0701641f8 100644
--- a/testing/test_pastebin.py
+++ b/testing/test_pastebin.py
@@ -1,10 +1,13 @@
+from typing import List
+from typing import Union
+
import pytest
class TestPasteCapture:
@pytest.fixture
- def pastebinlist(self, monkeypatch, request):
- pastebinlist = []
+ def pastebinlist(self, monkeypatch, request) -> List[Union[str, bytes]]:
+ pastebinlist = [] # type: List[Union[str, bytes]]
plugin = request.config.pluginmanager.getplugin("pastebin")
monkeypatch.setattr(plugin, "create_new_paste", pastebinlist.append)
return pastebinlist