Skip to content

Commit

Permalink
[ENH] allow list of types in estimator tag register tests (#53)
Browse files Browse the repository at this point in the history
Mino update to specification conformance tests in the estimator tag
register, to allow listst of estimator types
  • Loading branch information
fkiraly authored Sep 9, 2023
1 parent 0d8bd68 commit 27aa6f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion skpro/registry/tests/test_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ def test_tag_register_type():
for tag in OBJECT_TAG_REGISTER:
assert len(tag) == 4
assert isinstance(tag[0], str)
assert isinstance(tag[1], str)
assert isinstance(tag[1], (str, list))
if isinstance(tag[1], list):
assert all(isinstance(x, str) for x in tag[1])
assert isinstance(tag[2], (str, tuple))
if isinstance(tag[2], tuple):
assert len(tag[2]) == 2
Expand Down

0 comments on commit 27aa6f5

Please sign in to comment.