mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
fix bad assertions in github.Project.edit (#1817)
The assertions in github.Project.edit looked like the result of a bad copy-paste operation: they were all making assertions about the `name` parameter. This commit fixes them so they are checking different parameters.
This commit is contained in:
+2
-2
@@ -165,8 +165,8 @@ class Project(github.GithubObject.CompletableGithubObject):
|
||||
:rtype: None
|
||||
"""
|
||||
assert name is github.GithubObject.NotSet or isinstance(name, str), name
|
||||
assert body is github.GithubObject.NotSet or isinstance(name, str), body
|
||||
assert state is github.GithubObject.NotSet or isinstance(name, str), state
|
||||
assert body is github.GithubObject.NotSet or isinstance(body, str), body
|
||||
assert state is github.GithubObject.NotSet or isinstance(state, str), state
|
||||
assert organization_permission is github.GithubObject.NotSet or isinstance(
|
||||
organization_permission, str
|
||||
), organization_permission
|
||||
|
||||
Reference in New Issue
Block a user