Skip to content

Commit

Permalink
Merge pull request #160 from blaggacao/fix-tests
Browse files Browse the repository at this point in the history
fix(tests): ✅ compare int to int, not string
  • Loading branch information
MerleLiuKun committed Jul 18, 2023
2 parents 7b759c2 + d07c85b commit 812d799
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/models/test_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def testChannelSnippet(self) -> None:
def testChannelStatistics(self) -> None:
m = models.ChannelStatistics.from_dict(self.STATISTICS_INFO)

self.assertEqual(m.viewCount, "160361638")
self.assertEqual(m.viewCount, 160361638)

def testChannelStatus(self) -> None:
m = models.ChannelStatus.from_dict(self.STATUS_INFO)
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def testVideoSnippet(self) -> None:
def testVideoStatistics(self) -> None:
m = models.VideoStatistics.from_dict(self.STATISTICS_INFO)

self.assertEqual(m.viewCount, "8087")
self.assertEqual(m.viewCount, 8087)

def testVideoStatus(self) -> None:
m = models.VideoStatus.from_dict(self.STATUS_INFO)
Expand Down

0 comments on commit 812d799

Please sign in to comment.