From 5c998c8fa90fb2b15268cbf5b9ed894eab6bb8bc Mon Sep 17 00:00:00 2001 From: Marc Foley Date: Mon, 22 Jul 2024 11:42:02 +0100 Subject: [PATCH] PushItem improve __eq__ --- Lib/gftools/push/trafficjam.py | 2 +- tests/push/test_trafficjam.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/gftools/push/trafficjam.py b/Lib/gftools/push/trafficjam.py index 21ea9ff7..ea817ee0 100644 --- a/Lib/gftools/push/trafficjam.py +++ b/Lib/gftools/push/trafficjam.py @@ -218,7 +218,7 @@ def __hash__(self) -> int: return hash(self.path) def __eq__(self, other): - return self.path == other.path + return (self.path, self.url) == (other.path, other.url) def exists(self) -> bool: from gftools.push.utils import google_path_to_repo_path diff --git a/tests/push/test_trafficjam.py b/tests/push/test_trafficjam.py index 40fd4ee1..0f3f1f90 100644 --- a/tests/push/test_trafficjam.py +++ b/tests/push/test_trafficjam.py @@ -35,7 +35,7 @@ PushItem( Path("ofl/mavenpro"), PushCategory.UPGRADE, PushStatus.IN_DEV, "46" ), - True, + False, ), ( PushItem(