Skip to content

Commit aea4282

Browse files
committed
test: Replaced incorrect object ID comparisons with string string repr comparisons
1 parent 2212c2d commit aea4282

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,4 +971,4 @@ def test_library_section_cache_invalidation(movies):
971971
after_locations = movies.locations
972972
after_id = id(after_locations)
973973
assert before_id != after_id, "Locations should have a new object ID after a reload"
974-
assert before_locations == after_locations, "Locations should not have changed content after a library reload"
974+
assert str(before_locations) == str(after_locations), "Locations should not have changed content after a library reload"

tests/test_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,4 +1554,4 @@ def test_video_cache_invalidation(movie):
15541554
after_guids = movie.guids
15551555
after_id = id(after_guids)
15561556
assert before_id != after_id, "GUIDs should have a new object ID after a reload"
1557-
assert before_guids == after_guids, "GUIDs should not have changed content after a reload"
1557+
assert str(before_guids) == str(after_guids), "GUIDs should not have changed content after a reload"

0 commit comments

Comments
 (0)