Skip to content

Commit

Permalink
Refactor: clean up variable names in existing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 committed Dec 2, 2021
1 parent 25a989d commit 321f4d1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/structured_conf/test_structured_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ def validate(cfg: DictConfig) -> None:
conf1 = OmegaConf.structured(module.ConfigWithList)
validate(conf1)

conf1 = OmegaConf.structured(module.ConfigWithList())
validate(conf1)
conf2 = OmegaConf.structured(module.ConfigWithList())
validate(conf2)

def test_config_with_list_nondefault_values(self, module: Any) -> None:
conf1 = OmegaConf.structured(module.ConfigWithList(list1=[4, 5, 6]))
Expand Down Expand Up @@ -233,8 +233,9 @@ def validate(cfg: DictConfig) -> None:

conf1 = OmegaConf.structured(module.ConfigWithDict)
validate(conf1)
conf1 = OmegaConf.structured(module.ConfigWithDict())
validate(conf1)

conf2 = OmegaConf.structured(module.ConfigWithDict())
validate(conf2)

def test_config_with_dict_nondefault_values(self, module: Any) -> None:
conf1 = OmegaConf.structured(module.ConfigWithDict(dict1={"baz": "qux"}))
Expand Down

0 comments on commit 321f4d1

Please sign in to comment.