summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthew Martin <phy1729@gmail.com>2022-01-05 21:16:43 -0600
committerDavid Lord <davidism@gmail.com>2022-03-19 11:26:19 -0700
commite0033315510510acdba14e880a361ccca091fb4b (patch)
tree17863979ec71e96da227dc9fcdee57e66229638c /tests
parent19be092b6db4e4300e31906498e354ec0adf870c (diff)
downloadclick-e0033315510510acdba14e880a361ccca091fb4b.tar.gz
fix ParamType.to_info_dict() with no name
Diffstat (limited to 'tests')
-rw-r--r--tests/test_info_dict.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_info_dict.py b/tests/test_info_dict.py
index b58ad6e..79d39ee 100644
--- a/tests/test_info_dict.py
+++ b/tests/test_info_dict.py
@@ -266,3 +266,10 @@ def test_context():
"ignore_unknown_options": False,
"auto_envvar_prefix": None,
}
+
+
+def test_paramtype_no_name():
+ class TestType(click.ParamType):
+ pass
+
+ assert TestType().to_info_dict()["name"] == "TestType"