summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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"