Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cguardia committed Nov 10, 2020
1 parent ea7d772 commit f645e49
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 11 additions & 2 deletions google/cloud/bigquery/dataset.py
Expand Up @@ -133,7 +133,15 @@ class AccessEntry(object):
"""

ENTITY_TYPES = frozenset(
["userByEmail", "groupByEmail", "domain", "specialGroup", "view", "iamMember", "routine"]
[
"userByEmail",
"groupByEmail",
"domain",
"specialGroup",
"view",
"iamMember",
"routine",
]
)
"""Allowed entity types."""

Expand All @@ -147,7 +155,8 @@ def __init__(self, role, entity_type, entity_id):
if entity_type in ("view", "routine"):
if role is not None:
raise ValueError(
"Role must be None for a %r. Received " "role: %r" % (entity_type, role)
"Role must be None for a %r. Received "
"role: %r" % (entity_type, role)
)
else:
if role is None:
Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_dataset.py
Expand Up @@ -141,7 +141,6 @@ def test_to_api_repr_routine(self):
exp_resource = {"routine": routine}
self.assertEqual(resource, exp_resource)


def test_from_api_repr(self):
resource = {"role": "OWNER", "userByEmail": "salmon@example.com"}
entry = self._get_target_class().from_api_repr(resource)
Expand Down

0 comments on commit f645e49

Please sign in to comment.