Annotate test_helpers.instrument_url().

This commit is contained in:
Steve Howell 2016-09-11 18:06:25 -07:00 committed by Tim Abbott
parent ffec98d85c
commit cdee3dfb53
1 changed files with 3 additions and 0 deletions

View File

@ -199,7 +199,10 @@ class POSTRequestMock(object):
INSTRUMENTING = os.environ.get('TEST_INSTRUMENT_URL_COVERAGE', '') == 'TRUE'
INSTRUMENTED_CALLS = []
UrlFuncT = Callable[..., HttpResponse] # TODO: make more specific
def instrument_url(f):
# type: (UrlFuncT) -> UrlFuncT
if not INSTRUMENTING:
return f
else: