Skip to content

Commit

Permalink
add docstring to test_dict_subclass_error function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 committed May 11, 2021
1 parent 11c210e commit b58bcd5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,12 @@ def test_get_full_key_failure_in_format_and_raise() -> None:


def test_dict_subclass_error() -> None:
"""
Test calling OmegaConf.structured(malformed_dict_subclass).
We expect a ValueError and a UserWarning (deprecation) to be raised simultaneously.
We are using a separate function instead of adding
warning support to the giant `test_errors` function above,
"""
src = Str2Int()
src["bar"] = "qux" # type: ignore
# expected.finalize(cfg)
Expand Down

0 comments on commit b58bcd5

Please sign in to comment.