summaryrefslogtreecommitdiff
path: root/tests/test_context.py
diff options
context:
space:
mode:
authorJoshua Storck <joshua.storck@twosigma.com>2019-06-03 10:50:30 -0400
committerJoshua Storck <joshua.storck@twosigma.com>2019-06-03 10:50:30 -0400
commitc296d4415efbbf1e6e7095ea3295462ae962cde4 (patch)
treefa48f9e3910c9c94b99341c943453badf5bfe7eb /tests/test_context.py
parentb24a3c69353791ade7bded61c76b0c31bdee12ea (diff)
downloadclick-c296d4415efbbf1e6e7095ea3295462ae962cde4.tar.gz
Changing ParameterSource.validate unit test to take a descriptive bad value. Changing Context._sources_by_paramname to Context._source_by_paramname. Renaming ParameterSource.validate clz arg to cls and removing doc for that argument in the docstring
Diffstat (limited to 'tests/test_context.py')
-rw-r--r--tests/test_context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_context.py b/tests/test_context.py
index 972cd45..3570749 100644
--- a/tests/test_context.py
+++ b/tests/test_context.py
@@ -314,4 +314,4 @@ def test_parameter_source_environment_variable_specified(runner):
def test_validate_parameter_source():
with pytest.raises(ValueError):
- click.ParameterSource.validate("DEFAUL")
+ click.ParameterSource.validate("NOT_A_VALID_PARAMETER_SOURCE")