Skip to content

Commit

Permalink
add failing tests for the extra conditions required
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Oct 10, 2024
1 parent d782fdd commit 78f217a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/fixers/test_gis_admin_deprecations.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,28 @@ def test_no_deprecated_alias():
)


def test_osm_geo_admin_multiple_inheritance():
check_noop(
"""\
from django.contrib.gis.admin.options import OSMGeoAdmin
class MyModelAdmin(OSMGeoAdmin, other):
pass
""",
)


def test_osm_geo_admin_overloaded_attribute():
check_noop(
"""\
from django.contrib.gis.admin.options import OSMGeoAdmin
class MyModelAdmin(OSMGeoAdmin):
default_lon = 1
""",
)


def test_osm_geo_admin_plain():
check_transformed(
"""\
Expand Down

0 comments on commit 78f217a

Please sign in to comment.