Commit 0f0be2c8 authored by Lukáš Lalinský's avatar Lukáš Lalinský

Fix new mypy error

parent 796507fd
Pipeline #20555 passed with stages
in 4 minutes and 5 seconds
......@@ -61,7 +61,7 @@ def test_error(ctx):
def test_lookup_handler_params(ctx):
# type: (ScriptContext) -> None
# missing client
values = MultiDict({})
values = MultiDict({}) # type: MultiDict
params = LookupHandlerParams(ctx.config)
assert_raises(errors.MissingParameterError, params.parse, values, ctx.db)
# invalid client
......@@ -138,7 +138,7 @@ INSERT INTO fingerprint (length, fingerprint, track_id, submission_count)
def test_submit_handler_params(ctx):
# type: (ScriptContext) -> None
# missing client
values = MultiDict({})
values = MultiDict({}) # type: MultiDict
params = SubmitHandlerParams(ctx.config)
assert_raises(errors.MissingParameterError, params.parse, values, ctx.db)
# invalid client
......
......@@ -65,7 +65,7 @@ def test_error(ctx):
@with_script_context
def test_api_handler_params_jsonp(ctx):
# type: (ScriptContext) -> None
values = MultiDict({'client': 'app1key', 'format': 'jsonp'})
values = MultiDict({'client': 'app1key', 'format': 'jsonp'}) # type: MultiDict
params = APIHandlerParams(ctx.config)
params.parse(values, ctx)
assert_equals('jsonp:jsonAcoustidApi', params.format)
......@@ -83,7 +83,7 @@ def test_api_handler_params_jsonp(ctx):
def test_lookup_handler_params(ctx):
# type: (ScriptContext) -> None
# invalid format
values = MultiDict({'format': 'xls'})
values = MultiDict({'format': 'xls'}) # type: MultiDict
params = LookupHandlerParams(ctx.config)
assert_raises(errors.UnknownFormatError, params.parse, values, ctx.db)
# missing client
......@@ -304,7 +304,7 @@ INSERT INTO fingerprint (length, fingerprint, track_id, submission_count)
def test_submit_handler_params(ctx):
# type: (ScriptContext) -> None
# invalid format
values = MultiDict({'format': 'xls'})
values = MultiDict({'format': 'xls'}) # type: MultiDict
params = SubmitHandlerParams(ctx.config)
assert_raises(errors.UnknownFormatError, params.parse, values, ctx.db)
# missing client
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment