diff --git a/src/objects/tests/v1/test_filters.py b/src/objects/tests/v1/test_filters.py index 5c74a3c5..4b498422 100644 --- a/src/objects/tests/v1/test_filters.py +++ b/src/objects/tests/v1/test_filters.py @@ -317,7 +317,7 @@ def test_filter_exclude_old_records(self): start_at=date.today() - timedelta(days=10), end_at=date.today() - timedelta(days=1), ) - record_new = ObjectRecordFactory.create( + ObjectRecordFactory.create( data={"diameter": 50}, object=record_old.object, start_at=record_old.end_at ) @@ -371,7 +371,7 @@ def test_filter_date_detail(self): record1 = ObjectRecordFactory.create( object=object, start_at="2020-01-01", end_at="2020-12-31" ) - record2 = ObjectRecordFactory.create(object=object, start_at="2021-01-01") + ObjectRecordFactory.create(object=object, start_at="2021-01-01") url = reverse_lazy("object-detail", args=[object.uuid]) @@ -385,7 +385,7 @@ def test_filter_date_detail(self): def test_filter_date_detail_no_actual_record(self): object = ObjectFactory.create(object_type=self.object_type) - record = ObjectRecordFactory.create(object=object, start_at="2021-01-01") + ObjectRecordFactory.create(object=object, start_at="2021-01-01") url = reverse_lazy("object-detail", args=[object.uuid]) @@ -399,9 +399,9 @@ def test_filter_date_list(self): record11 = ObjectRecordFactory.create( object=object1, start_at="2020-01-01", end_at="2020-12-31" ) - record12 = ObjectRecordFactory.create(object=object1, start_at="2021-01-01") + ObjectRecordFactory.create(object=object1, start_at="2021-01-01") # object 2 - don't show - record21 = ObjectRecordFactory.create( + ObjectRecordFactory.create( object__object_type=self.object_type, start_at="2021-01-01" ) @@ -424,7 +424,7 @@ def test_filter_registration_date_detail(self): object=object, registration_at="2020-01-01", ) - record2 = ObjectRecordFactory.create( + ObjectRecordFactory.create( object=object, registration_at="2021-01-01" ) @@ -440,7 +440,7 @@ def test_filter_registration_date_detail(self): def test_filter_registration_date_detail_no_record(self): object = ObjectFactory.create(object_type=self.object_type) - record = 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]) @@ -454,11 +454,11 @@ def test_filter_registration_date_list(self): record11 = ObjectRecordFactory.create( object=object1, registration_at="2020-01-01" ) - record12 = ObjectRecordFactory.create( + ObjectRecordFactory.create( object=object1, registration_at="2021-01-01" ) # object 2 - don't show - record21 = ObjectRecordFactory.create( + ObjectRecordFactory.create( object__object_type=self.object_type, registration_at="2021-01-01" ) diff --git a/src/objects/tests/v1/test_object_api.py b/src/objects/tests/v1/test_object_api.py index 52667ad7..3a25bcb9 100644 --- a/src/objects/tests/v1/test_object_api.py +++ b/src/objects/tests/v1/test_object_api.py @@ -44,7 +44,7 @@ def test_list_actual_objects(self, m): object__object_type=self.object_type, start_at=date.today(), ) - object_record2 = ObjectRecordFactory.create( + ObjectRecordFactory.create( object__object_type=self.object_type, start_at=date.today() - timedelta(days=10), end_at=date.today() - timedelta(days=1), diff --git a/src/objects/tests/v1/test_stuf.py b/src/objects/tests/v1/test_stuf.py index f601f4fe..51ccdd3d 100644 --- a/src/objects/tests/v1/test_stuf.py +++ b/src/objects/tests/v1/test_stuf.py @@ -103,7 +103,7 @@ def test_2a_2_records_found(self): Test 2a: If records 1 and 40 exists, material history and formal history on 01-01-2020 should say: Record 40 """ - record_1 = ObjectRecordFactory.create( + ObjectRecordFactory.create( object=self.object, data={ "geslachtsnaam": "Poepenstaart", @@ -177,7 +177,7 @@ def test_3a_3_records_found(self): Test 3a: If records 1, 40 and 50 exists, material history and formal history on 01-01-2020 should say: Record 50 """ - record_1 = ObjectRecordFactory.create( + ObjectRecordFactory.create( object=self.object, data={ "geslachtsnaam": "Poepenstaart", @@ -189,7 +189,7 @@ def test_3a_3_records_found(self): end_at=date(2001, 9, 3), registration_at=date(1977, 8, 7), ) - record_40 = ObjectRecordFactory.create( + ObjectRecordFactory.create( object=self.object, data={ "geslachtsnaam": "Bergh", @@ -274,7 +274,7 @@ def test_3b_3_records_not_found(self): class Stuf22Tests(TokenAuthMixin, APITestCase): - """ + """ # 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 Test cases based on the Table 2.2 in the StUF 03.01 |PersoonsId|volgnummer|geslachtsnaam|voorvoegsel|voorletters|geboortedatum|burgerlijkestaat|beginGeldigheid|tijdstipRegistratie|volgnrNaCorrectie| |----------|----------|-------------|-----------|-----------|-------------|----------------|---------------|-------------------|-----------------|