mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
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:
+11
-11
@@ -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
Reference in New Issue
Block a user