1
0
mirror of https://github.com/quay/quay.git synced 2025-07-28 20:22:05 +03:00

[PROJQUAY-1021] task: Update "Black" to version 20.8b1

This commit is contained in:
Kurtis Mullins
2020-11-30 18:48:19 -05:00
committed by GitHub
parent 28a5200d19
commit bd7252c536
234 changed files with 5302 additions and 2233 deletions

View File

@ -461,7 +461,10 @@ class TestUserStarredRepositoryList(ApiTestCase):
def test_star_repo_guest(self):
self.postJsonResponse(
StarredRepositoryList,
data={"namespace": "public", "repository": "publicrepo",},
data={
"namespace": "public",
"repository": "publicrepo",
},
expected_code=401,
)
@ -475,7 +478,10 @@ class TestUserStarredRepositoryList(ApiTestCase):
json = self.postJsonResponse(
StarredRepositoryList,
data={"namespace": "public", "repository": "publicrepo",},
data={
"namespace": "public",
"repository": "publicrepo",
},
expected_code=201,
)
assert json["namespace"] == "public"
@ -4115,9 +4121,17 @@ class FakeBuildTrigger(BuildTriggerHandler):
def list_build_sources_for_namespace(self, namespace):
if namespace == "first":
return [{"name": "source",}]
return [
{
"name": "source",
}
]
elif namespace == "second":
return [{"name": self.auth_token,}]
return [
{
"name": self.auth_token,
}
]
else:
return []