Skip to content

Commit

Permalink
format missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Baji committed Mar 25, 2022
1 parent 98201fa commit 47bf572
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 29 deletions.
4 changes: 2 additions & 2 deletions tests/schema_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ class ArgmaxTest(dj.Lookup):
def contents(self):
n = self.n
yield from zip(
range(n ** 2),
range(n**2),
itertools.chain(*itertools.repeat(tuple(map(chr, range(100, 100 + n))), n)),
np.random.rand(n ** 2),
np.random.rand(n**2),
)


Expand Down
51 changes: 24 additions & 27 deletions tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,33 +133,30 @@ class Unit(dj.Part):

def test_list_tables():
# https://github.com/datajoint/datajoint-python/issues/838
assert (
set(
[
"reserved_word",
"#l",
"#a",
"__d",
"__b",
"__b__c",
"__e",
"__e__f",
"#outfit_launch",
"#outfit_launch__outfit_piece",
"#i_j",
"#j_i",
"#t_test_update",
"#data_a",
"#data_b",
"f",
"#argmax_test",
"#website",
"profile",
"profile__website",
]
)
== set(schema_simple.list_tables())
)
assert set(
[
"reserved_word",
"#l",
"#a",
"__d",
"__b",
"__b__c",
"__e",
"__e__f",
"#outfit_launch",
"#outfit_launch__outfit_piece",
"#i_j",
"#j_i",
"#t_test_update",
"#data_a",
"#data_b",
"f",
"#argmax_test",
"#website",
"profile",
"profile__website",
]
) == set(schema_simple.list_tables())


def test_schema_save():
Expand Down

0 comments on commit 47bf572

Please sign in to comment.