From 99153d0c55f2c79ae65db402cc8041f2842a1f89 Mon Sep 17 00:00:00 2001 From: "J.C. Jones" Date: Thu, 29 Feb 2024 17:02:46 -0700 Subject: [PATCH] re-format --- partitionmanager/types_test.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/partitionmanager/types_test.py b/partitionmanager/types_test.py index 8197a84..198fdc4 100644 --- a/partitionmanager/types_test.py +++ b/partitionmanager/types_test.py @@ -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), ) @@ -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)), ) @@ -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))