From be5daf5146c68d2b89b6313c1ae4507db4a8ea84 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Thu, 9 Jan 2025 14:08:16 +0100 Subject: [PATCH] [#513] apply black formatting --- src/objects/tests/v1/test_filters.py | 13 +++++-------- src/objects/tests/v1/test_stuf.py | 4 ++-- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/objects/tests/v1/test_filters.py b/src/objects/tests/v1/test_filters.py index 17967d4a..698aa2e3 100644 --- a/src/objects/tests/v1/test_filters.py +++ b/src/objects/tests/v1/test_filters.py @@ -217,8 +217,9 @@ def test_filter_invalid_param(self): [ _( "Filter expression '%(value_part)s' doesn't have the shape 'key__operator__value'" - ) % {"value_part": "diameter__exact"} - ] + ) + % {"value_part": "diameter__exact"} + ], ) def test_filter_nested_attr(self): @@ -431,9 +432,7 @@ def test_filter_registration_date_detail(self): object=object, registration_at="2020-01-01", ) - ObjectRecordFactory.create( - object=object, registration_at="2021-01-01" - ) + ObjectRecordFactory.create(object=object, registration_at="2021-01-01") url = reverse_lazy("object-detail", args=[object.uuid]) @@ -461,9 +460,7 @@ def test_filter_registration_date_list(self): record11 = ObjectRecordFactory.create( object=object1, registration_at="2020-01-01" ) - ObjectRecordFactory.create( - object=object1, registration_at="2021-01-01" - ) + ObjectRecordFactory.create(object=object1, registration_at="2021-01-01") # object 2 - don't show ObjectRecordFactory.create( object__object_type=self.object_type, registration_at="2021-01-01" diff --git a/src/objects/tests/v1/test_stuf.py b/src/objects/tests/v1/test_stuf.py index 51ccdd3d..2d99e338 100644 --- a/src/objects/tests/v1/test_stuf.py +++ b/src/objects/tests/v1/test_stuf.py @@ -274,7 +274,7 @@ def test_3b_3_records_not_found(self): class Stuf22Tests(TokenAuthMixin, APITestCase): - """ # noqa + """# noqa Test cases based on the Table 2.2 in the StUF 03.01 |PersoonsId|volgnummer|geslachtsnaam|voorvoegsel|voorletters|geboortedatum|burgerlijkestaat|beginGeldigheid|tijdstipRegistratie| |----------|----------|-------------|-----------|-----------|-------------|----------------|---------------|-------------------| @@ -403,7 +403,7 @@ def test_4d_not_found(self): class Stuf23Tests(TokenAuthMixin, APITestCase): - """ # noqa + """# noqa Test cases based on the Table 2.2 in the StUF 03.01 |PersoonsId|volgnummer|geslachtsnaam|voorvoegsel|voorletters|geboortedatum|burgerlijkestaat|beginGeldigheid|tijdstipRegistratie|volgnrNaCorrectie| |----------|----------|-------------|-----------|-----------|-------------|----------------|---------------|-------------------|-----------------|