mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Test more attributes (#1526)
To increase coverage, sprinkle in some asserts for attributes that were not checked -- this uncovered a bug in Issue that two attributes were not properly initialized to NotSet.
This commit is contained in:
@@ -55,6 +55,7 @@ class RepositoryKey(Framework.TestCase):
|
||||
)
|
||||
self.assertEqual(self.key.created_at, datetime.datetime(2017, 2, 22, 8, 16, 23))
|
||||
self.assertTrue(self.key.verified)
|
||||
self.assertTrue(self.key.read_only)
|
||||
self.assertEqual(
|
||||
repr(self.key), 'RepositoryKey(title="PyGithub Test Key", id=21870881)'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user