Skip to content

Commit 24de6cb

Browse files
author
Sicara
committed
black it
1 parent bc52960 commit 24de6cb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/map/test_core.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,16 @@ def square(x: DataPoint) -> DataPoint:
271271
x.num_squared = square_hit_tracker(x.num)
272272
return x
273273

274-
x1 = SimpleNamespace(uid="id1", num=8, unhashable=pd.DataFrame({"value": [5]}))
274+
x1 = SimpleNamespace(
275+
uid="id1", num=8, not_used=0, unhashable=pd.DataFrame({"value": [5]})
276+
)
275277
x1_mapped = square(x1)
276278
assert x1_mapped is not None
277279
self.assertEqual(x1_mapped.num_squared, 64)
278280
self.assertEqual(square_hit_tracker.n_hits, 1)
279-
x2 = SimpleNamespace(uid="id1", num=8, unhashable=pd.DataFrame({"value": [5]}))
281+
x2 = SimpleNamespace(
282+
uid="id1", num=8, not_used=1, unhashable=pd.DataFrame({"value": [5]})
283+
)
280284
x2_mapped = square(x2)
281285
assert x2_mapped is not None
282286
self.assertEqual(x2_mapped.num_squared, 64)

0 commit comments

Comments
 (0)