Check all arguments of NamedUser.get_repos() (#1532)

The two unit tests for NamedUser.get_repos() did not check all
arguments, and this was the only method in the file that wasn't
completly covered. Re-record the replay data while passing all arguments
to the method.
This commit is contained in:
Steve Kowalik
2020-05-25 11:33:54 +10:00
committed by GitHub
parent f41c046f0e
commit 69bfc32511
3 changed files with 22 additions and 22 deletions
+11 -11
View File
@@ -248,21 +248,21 @@ class NamedUser(Framework.TestCase):
],
)
def testGetReposWithType(self):
def testGetReposWithAllArgs(self):
self.assertListKeyEqual(
self.user.get_repos("owner"),
self.user.get_repos(type="owner", sort="created", direction="asc"),
lambda r: r.name,
[
"django",
"PyGithub",
"developer.github.com",
"acme-public-website",
"C4Planner",
"DrawTurksHead",
"DrawSyntax",
"QuadProgMm",
"Boost.HierarchicalEnum",
"ViDE",
"vincent-jacques.net",
"IpMap",
"MockMockMock",
"ActionTree",
"InteractiveCommandLine",
"RecursiveDocument",
"MarblesCollide",
"jacquev6.github.io",
"LowVoltage",
],
)
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long