Commit b244c8f2 authored by Simon Chabot's avatar Simon Chabot
Browse files

style(black): fix formatting according to the latest black version

parent e4a183d74d2e
Pipeline #14817 passed with stage
in 2 minutes and 33 seconds
......@@ -43,7 +43,11 @@ class AuthToken(EntityType):
# allowed in 'read' permission but rely on entity type
# permissions anyways.
__permissions__={
"read": ("managers", "users", "guests",),
"read": (
"managers",
"users",
"guests",
),
"add": (),
"update": (),
},
......@@ -58,7 +62,11 @@ class AuthToken(EntityType):
class token_for_user(RelationDefinition):
__permissions__ = {
"read": ("managers", "users", "guests",),
"read": (
"managers",
"users",
"guests",
),
"delete": ("managers", RRQLExpression("S token_for_user U")),
"add": ("managers", "users"),
}
......
......@@ -74,6 +74,10 @@ setup(
packages=find_packages(exclude=["test"]),
install_requires=install_requires,
include_package_data=True,
entry_points={"cubicweb.cubes": ["signedrequest=cubicweb_signedrequest",],},
entry_points={
"cubicweb.cubes": [
"signedrequest=cubicweb_signedrequest",
],
},
zip_safe=False,
)
......@@ -96,7 +96,10 @@ class SignedRequestBaseTC(object):
return headers
def test_login(self):
result, req = self._test_header_format(method="Cubicweb", login="admin",)
result, req = self._test_header_format(
method="Cubicweb",
login="admin",
)
self._assert_auth(req, result)
def test_bad_date(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment