Skip to content

Commit

Permalink
more test cases which fail, wip fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pereman2 committed Feb 3, 2021
1 parent 0de6dbb commit fa2c0a2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/structured_conf/test_structured_config_container_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,28 @@ def test_container_as_element_type_valid(
[
("ContainerInList", [{"user": True}], "list_with_dict"),
("ContainerInList", [{"user": User()}], "list_with_dict"),
(
"ContainerInList",
ListConfig(
content=[{"user": User()}],
ref_type=List[Dict[str, User]],
element_type=Dict[str, User],
),
"list_with_dict",
),
("ContainerInList", [[1, 2], [True, 4]], "list_with_list"),
("ContainerInList", [[1, 2], [User(), 4]], "list_with_list"),
("ContainerInDict", {"users": {"default": True}}, "dict_with_dict"),
(
"ContainerInDict",
DictConfig(
content={"users": {"default": True}},
ref_type=Dict[str, Dict[str, bool]],
element_type=Dict[str, bool],
key_type=str,
),
"dict_with_dict",
),
("ContainerInDict", {"users": {"default": User()}}, "dict_with_dict"),
("ContainerInDict", {"users": [1, True]}, "dict_with_list"),
("ContainerInDict", {"users": [1, User()]}, "dict_with_list"),
Expand Down

0 comments on commit fa2c0a2

Please # to comment.