Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync GistComment class with API spec #3124

Merged
merged 4 commits into from
Jan 8, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated test class according to API spec
  • Loading branch information
EnricoMi committed Jan 8, 2025
commit cd3502c97a47f0f46d7ec8dc553d0a167e09ae72
4 changes: 4 additions & 0 deletions tests/GistComment.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
# #
################################################################################

from __future__ import annotations

from datetime import datetime, timezone

from . import Framework
Expand All @@ -43,12 +45,14 @@ def setUp(self):
self.comment = self.g.get_gist("2729810").get_comment(323629)

def testAttributes(self):
self.assertEqual(self.comment.author_association, "dict[str, Any]")
self.assertEqual(self.comment.body, "Comment created by PyGithub")
self.assertEqual(
self.comment.created_at,
datetime(2012, 5, 19, 7, 7, 57, tzinfo=timezone.utc),
)
self.assertEqual(self.comment.id, 323629)
self.assertEqual(self.comment.node_id, "")
self.assertEqual(
self.comment.updated_at,
datetime(2012, 5, 19, 7, 7, 57, tzinfo=timezone.utc),
Expand Down