Skip to content

Commit

Permalink
🚧 removing inspector files
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-maykin committed Sep 6, 2024
1 parent fae57f2 commit 49c8218
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 957 deletions.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ install_requires =
django-filter>=2.0
django-solo
djangorestframework>=3.11.0
djangorestframework-gis>=1.0
djangorestframework_camel_case>=1.2.0
django-rest-framework-condition
drf-extra-fields>=3.7.0
Expand Down
295 changes: 0 additions & 295 deletions tests/test_cache_headers.py

This file was deleted.

6 changes: 4 additions & 2 deletions tests/test_field_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Meta:

class LengthHyperLinkedSerializer(serializers.ModelSerializer):
poly = LengthHyperlinkedRelatedField(
view_name="poly-detail",
view_name="field_extention_poly-detail",
lookup_field="uuid",
queryset=Poly.objects,
min_length=20,
Expand Down Expand Up @@ -68,6 +68,8 @@ class HyperlinkedIdentityViewSet(viewsets.ModelViewSet):
serializer_class = HyperlinkedIdentityFieldSerializer


app_name = "field_extensions"

router = routers.DefaultRouter(trailing_slash=False)
router.register("base64", Base64ViewSet)
router.register("length", LengthHyperLinkedViewSet)
Expand Down Expand Up @@ -112,7 +114,7 @@ def test_read_only():

assert "name" not in path["MediaFileModel"]["properties"]

assert "name" not in path["PatchedMediaFileModel"]["properties"]["name"]
assert "name" not in path["PatchedMediaFileModel"]["properties"]


def test_hyper_link_related_field():
Expand Down
2 changes: 2 additions & 0 deletions tests/test_filter_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class FkModelViewSet(viewsets.ModelViewSet):
]


app_name = "filter_extensions"

router = routers.DefaultRouter(trailing_slash=False)
router.register("camilize", FkModelViewSet)

Expand Down
1 change: 1 addition & 0 deletions tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from test_field_extensions import Base64ViewSet

app_name = "schema"

router = routers.DefaultRouter(trailing_slash=False)
router.register("base64", Base64ViewSet)
Expand Down
2 changes: 2 additions & 0 deletions tests/test_serializer_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class PolyView(viewsets.ModelViewSet):
serializer_class = PolySerializer


app_name = "serializer_extensions"

router = routers.DefaultRouter(trailing_slash=False)
router.register("group", GroupView)
router.register("poly", PolyView)
Expand Down
Empty file.
Loading

0 comments on commit 49c8218

Please sign in to comment.