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

Fix CI tests

This commit is contained in:
Jeremy Stretch
2020-04-02 15:11:19 -04:00
parent 92fc28aa09
commit ee4c5ef64a
3 changed files with 4 additions and 3 deletions

View File

@ -6,4 +6,4 @@ class DummySerializer(ModelSerializer):
class Meta:
model = DummyModel
fields = ('id', 'name', 'sound')
fields = ('id', 'name', 'number')

View File

@ -1,5 +1,5 @@
from django.conf import settings
from django.test import Client, TestCase
from django.test import Client, TestCase, override_settings
from django.urls import reverse
from extras.registry import registry
@ -41,6 +41,7 @@ class PluginTest(TestCase):
response = client.get(url)
self.assertEqual(response.status_code, 200)
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*'])
def test_api_views(self):
# Test URL resolution

View File

@ -15,7 +15,7 @@ DATABASE = {
}
PLUGINS = [
'extras.tests.dummy_plugin'
'extras.tests.dummy_plugin',
]
REDIS = {