Skip to content

Commit 7bf70eb

Browse files
tirkarthiauvipy
authored andcommitted
[tests] Refactor deprecated unittest aliases for Python 3.11 compatibility
1 parent ccca7cc commit 7bf70eb

File tree

1 file changed

+4
-4
lines changed
  • tests/django_restframework_gis_tests

1 file changed

+4
-4
lines changed

tests/django_restframework_gis_tests/tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ def test_patch_geojson_location(self):
562562
)
563563
self.assertEqual(response.status_code, 200)
564564
location_reloaded = Location.objects.get(pk=location.id)
565-
self.assertEquals(location_reloaded.name, 'geojson successful patch test')
566-
self.assertEquals(
565+
self.assertEqual(location_reloaded.name, 'geojson successful patch test')
566+
self.assertEqual(
567567
location_reloaded.geometry, Point(10.1, 10.1, srid=location.geometry.srid)
568568
)
569569

@@ -578,8 +578,8 @@ def test_patch_geojson_location_wo_changing_geometry(self):
578578
)
579579
self.assertEqual(response.status_code, 200)
580580
location_reloaded = Location.objects.get(pk=location.id)
581-
self.assertEquals(location_reloaded.name, 'geojson successful patch test')
582-
self.assertEquals(
581+
self.assertEqual(location_reloaded.name, 'geojson successful patch test')
582+
self.assertEqual(
583583
location_reloaded.geometry, Point(135.0, 45.0, srid=location.geometry.srid)
584584
)
585585

0 commit comments

Comments
 (0)