1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Initial implementation of tests for plugins framework

This commit is contained in:
Jeremy Stretch
2020-04-01 17:08:47 -04:00
parent 093181c186
commit 30e330c887
16 changed files with 237 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
from rest_framework.viewsets import ModelViewSet
from extras.tests.dummy_plugin.models import DummyModel
from .serializers import DummySerializer
class DummyViewSet(ModelViewSet):
queryset = DummyModel.objects.all()
serializer_class = DummySerializer