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:
		@@ -6,4 +6,4 @@ class DummySerializer(ModelSerializer):
 | 
			
		||||
 | 
			
		||||
    class Meta:
 | 
			
		||||
        model = DummyModel
 | 
			
		||||
        fields = ('id', 'name', 'sound')
 | 
			
		||||
        fields = ('id', 'name', 'number')
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@ DATABASE = {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
PLUGINS = [
 | 
			
		||||
    'extras.tests.dummy_plugin'
 | 
			
		||||
    'extras.tests.dummy_plugin',
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
REDIS = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user