mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Slightly improve coverage :-D
This commit is contained in:
@@ -20,7 +20,7 @@ import GithubException
|
||||
|
||||
class _NotSetType:
|
||||
def __repr__(self):
|
||||
return "NotSet" # pragma no cover
|
||||
return "NotSet"
|
||||
NotSet = _NotSetType()
|
||||
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ import datetime
|
||||
|
||||
import Framework
|
||||
|
||||
import github
|
||||
|
||||
class Github(Framework.TestCase):
|
||||
def testGetGists(self):
|
||||
@@ -107,3 +108,6 @@ class Github(Framework.TestCase):
|
||||
t = self.g.get_gitignore_template("C++")
|
||||
self.assertEqual(t.name, "C++")
|
||||
self.assertEqual(t.source, "# Compiled Object files\n*.slo\n*.lo\n*.o\n\n# Compiled Dynamic libraries\n*.so\n*.dylib\n\n# Compiled Static libraries\n*.lai\n*.la\n*.a\n")
|
||||
|
||||
def testStringOfNotSet(self):
|
||||
self.assertEqual(str(github.GithubObject.NotSet), "NotSet")
|
||||
|
||||
Reference in New Issue
Block a user