Skip to content

Commit 1a69ae4

Browse files
Lash-Lallenporter
andauthored
Update test_containers.py
Co-authored-by: Allen Porter <allen.porter@gmail.com>
1 parent bdeeb18 commit 1a69ae4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_containers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ def test_accurate_map_flag() -> None:
488488
"""Test that we parse the map flag accurately."""
489489
s = S7MaxVStatus.from_dict(STATUS)
490490
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)
491+
s = S7MaxVStatus.from_dict({
492+
**STATUS,
493+
"map_status": 252, # Code for no map
494+
})
495495
assert s.current_map == 63

0 commit comments

Comments
 (0)