Skip to content

Commit

Permalink
rename variable in tests (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 authored Apr 25, 2022
1 parent 0ff8a40 commit 9492e73
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 @@ -208,8 +208,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_assignment_to_nested_structured_config(self, module: Any) -> None:
conf = OmegaConf.structured(module.NestedConfig)
Expand All @@ -232,8 +232,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_structured_config_struct_behavior(self, module: Any) -> None:
def validate(cfg: DictConfig) -> None:
Expand Down

0 comments on commit 9492e73

Please sign in to comment.