Skip to content

Commit

Permalink
✅ Adapt test with type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
valentingol committed Dec 17, 2023
1 parent 41456b9 commit b456b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_inte_multiple_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_multiple_tags() -> None:
check.equal(config.dict, expected_config)
config = merge_flat_processing(
config,
Config({"config2.param": 5.6}, []),
Config({"config2.param": 1 + 1j}, []),
preprocess_first=False,
)
with pytest.raises(
Expand Down Expand Up @@ -167,7 +167,7 @@ def func_optim_type(x: str) -> str:
check.equal(config.dict, expected_dict)
with pytest.raises(ValueError, match="Key previously tagged with '@type:int.*"):
config.process_list[8].endbuild(
Config({"models.vit_b16.n_blocks": 5.6}, config.process_list)
Config({"models.vit_b16.n_blocks": 1 + 1j}, config.process_list)
)
with pytest.raises(
ValueError, match="Found attempt to modify a key with '@copy' tag.*"
Expand Down

0 comments on commit b456b95

Please sign in to comment.