Skip to content

Commit

Permalink
Update test for overwritten resolvers
Browse files Browse the repository at this point in the history
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
  • Loading branch information
ankatiyar committed Aug 1, 2023
1 parent 3163c5e commit b03b1e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/config/test_omegaconf_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,9 @@ def test_overwrite_resolvers(self, tmp_path):
}
}
_write_yaml(base_params, param_config)
conf_original = OmegaConf.load(base_params)
# test_size should be calculated using custom resolver (x + 10)
assert conf_original["model_options"]["test_size"] == 20
custom_resolvers = {
"custom": lambda x: x + 20,
}
Expand Down

0 comments on commit b03b1e4

Please sign in to comment.