Skip to content

Commit 37248ff

Browse files
committed
Format with black
1 parent fdd4352 commit 37248ff

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/schema_privileges.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ class NoAccessAgain(dj.Manual):
3131

3232

3333
LOCALS_PRIV = {k: v for k, v in locals().items() if inspect.isclass(v)}
34-
__all__ = list(LOCALS_PRIV)
34+
__all__ = list(LOCALS_PRIV)

tests/test_privileges.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace = locals()
99

10+
1011
@pytest.fixture
1112
def connection_djview(connection_root):
1213
"""
@@ -26,14 +27,18 @@ class TestUnprivileged:
2627
def test_fail_create_schema(self, connection_djview):
2728
"""creating a schema with no CREATE privilege"""
2829
with pytest.raises(dj.DataJointError):
29-
return dj.Schema("forbidden_schema", namespace, connection=connection_djview)
30+
return dj.Schema(
31+
"forbidden_schema", namespace, connection=connection_djview
32+
)
3033

3134
def test_insert_failure(self, connection_djview, schema_any):
3235
unprivileged = dj.Schema(
3336
schema_any.database, namespace, connection=connection_djview
3437
)
3538
unprivileged.spawn_missing_classes()
36-
assert issubclass(Language, dj.Lookup) and len(Language()) == len(schema.Language()), "failed to spawn missing classes"
39+
assert issubclass(Language, dj.Lookup) and len(Language()) == len(
40+
schema.Language()
41+
), "failed to spawn missing classes"
3742
with pytest.raises(dj.DataJointError):
3843
Language().insert1(("Socrates", "Greek"))
3944

0 commit comments

Comments
 (0)