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:
Lars Kellogg-Stedman
2021-03-24 09:55:26 +11:00
committed by GitHub
parent 901af8c862
commit 6bae9e5cae
+2 -2
View File
@@ -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