Skip to content

Commit

Permalink
Add a test for case insensitive --auth-type CLI option
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Dygalo authored and Stranger6667 committed Oct 11, 2019
1 parent 865cd7a commit 26d3d22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/cli/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ def test_commands_run_help(schemathesis_cmd):
[SCHEMA_URI, "--auth=test:test", "--auth-type=digest"],
{"checks": runner.DEFAULT_CHECKS, "api_options": {"auth": HTTPDigestAuth("test", "test")}},
),
(
[SCHEMA_URI, "--auth=test:test", "--auth-type=DIGEST"],
{"checks": runner.DEFAULT_CHECKS, "api_options": {"auth": HTTPDigestAuth("test", "test")}},
),
(
[SCHEMA_URI, "--header=Authorization:Bearer 123"],
{"checks": runner.DEFAULT_CHECKS, "api_options": {"headers": {"Authorization": "Bearer 123"}}},
Expand Down

0 comments on commit 26d3d22

Please sign in to comment.