Skip to content

Commit

Permalink
Merge pull request #1008 from googlefonts/traffic-sub
Browse files Browse the repository at this point in the history
PushItem improve __eq__
  • Loading branch information
m4rc1e authored Jul 22, 2024
2 parents 890d7af + 5c998c8 commit cba6fd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib/gftools/push/trafficjam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/push/test_trafficjam.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
PushItem(
Path("ofl/mavenpro"), PushCategory.UPGRADE, PushStatus.IN_DEV, "46"
),
True,
False,
),
(
PushItem(
Expand Down

0 comments on commit cba6fd5

Please sign in to comment.