Revert "test_helpers: Fix a nonexistent import."

This reverts commit fa18913b8b.

We fix the typo when doing this, though.
This commit is contained in:
Tim Abbott
2018-05-15 16:08:15 -07:00
parent 1188f4a3e3
commit 16d807d157
2 changed files with 7 additions and 2 deletions

View File

@@ -57,6 +57,9 @@ ignore_missing_imports = True
[mypy-lister,.lister]
ignore_missing_imports = True
[mypy-zerver.lib.test_case]
ignore_missing_imports = True
# Our own libraries, maintained outside this repo and installed
# through pip. We need to tell mypy where to find them.

View File

@@ -46,6 +46,8 @@ from zerver.models import (
)
from zerver.lib.request import JsonableError
if False:
from zerver.lib.test_classes import ZulipTestCase
import collections
@@ -289,7 +291,7 @@ def instrument_url(f: UrlFuncT) -> UrlFuncT:
if not INSTRUMENTING: # nocoverage -- option is always enabled; should we remove?
return f
else:
def wrapper(self: ZulipTestCase, url: str, info: Dict[str, Any]={},
def wrapper(self: 'ZulipTestCase', url: str, info: Dict[str, Any]={},
**kwargs: Any) -> HttpResponse:
start = time.time()
result = f(self, url, info, **kwargs)