We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdeeb18 commit 1a69ae4Copy full SHA for 1a69ae4
tests/test_containers.py
@@ -488,8 +488,8 @@ def test_accurate_map_flag() -> None:
488
"""Test that we parse the map flag accurately."""
489
s = S7MaxVStatus.from_dict(STATUS)
490
assert s.current_map == 0
491
- status = copy.deepcopy(STATUS)
492
- # 252 is a code for no map, it should end up being 63.
493
- status["map_status"] = 252
494
- s = S7MaxVStatus.from_dict(status)
+ s = S7MaxVStatus.from_dict({
+ **STATUS,
+ "map_status": 252, # Code for no map
+ })
495
assert s.current_map == 63
0 commit comments