Skip to content

Commit

Permalink
re-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjones committed Mar 1, 2024
1 parent c1b35d8 commit 99153d0
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions partitionmanager/types_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ def test_new_partition(self):
self.assertEqual(
NewPlannedPartition()
.set_columns(5)
.set_timestamp(datetime(2021, 12, 31, hour=23, minute=15, tzinfo=timezone.utc))
.set_timestamp(
datetime(2021, 12, 31, hour=23, minute=15, tzinfo=timezone.utc)
)
.as_partition(),
MaxValuePartition("p_20211231", count=5),
)
Expand Down Expand Up @@ -322,9 +324,13 @@ def test_new_partition(self):
self.assertEqual(
NewPlannedPartition()
.set_position([99, 999])
.set_timestamp(datetime(2021, 12, 31, hour=19, minute=2, tzinfo=timezone.utc))
.set_timestamp(
datetime(2021, 12, 31, hour=19, minute=2, tzinfo=timezone.utc)
)
.set_as_max_value(),
NewPlannedPartition().set_columns(2).set_timestamp(datetime(2021, 12, 31, tzinfo=timezone.utc)),
NewPlannedPartition()
.set_columns(2)
.set_timestamp(datetime(2021, 12, 31, tzinfo=timezone.utc)),
)


Expand Down Expand Up @@ -390,7 +396,9 @@ def test_instant_partition(self):
def test_is_partition_type(self):
self.assertTrue(is_partition_type(mkPPart("b", 1, 2)))
self.assertTrue(
is_partition_type(InstantPartition("p_19490520", datetime.now(tz=timezone.utc), [1, 2]))
is_partition_type(
InstantPartition("p_19490520", datetime.now(tz=timezone.utc), [1, 2])
)
)
self.assertFalse(is_partition_type(None))
self.assertFalse(is_partition_type(1))
Expand Down

0 comments on commit 99153d0

Please sign in to comment.