mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Removed deprecated test
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
from django.urls import reverse_lazy
|
||||
|
||||
from modoboa.lib.tests import ModoAPITestCase
|
||||
|
||||
|
||||
class OpenAPITestCase(ModoAPITestCase):
|
||||
openapi_schema_url = reverse_lazy("schema-v1-legacy")
|
||||
|
||||
def test_unauthorized(self):
|
||||
self.client.logout()
|
||||
|
||||
response = self.client.get(self.openapi_schema_url)
|
||||
self.assertEqual(response.status_code, 401)
|
||||
|
||||
def test_get_schema(self):
|
||||
self.assertEqual(self.openapi_schema_url, "/docs/openapi.json")
|
||||
|
||||
response = self.client.get(self.openapi_schema_url)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(
|
||||
response.json()["info"],
|
||||
{
|
||||
"title": "Modoboa API",
|
||||
"version": "v1",
|
||||
},
|
||||
)
|
||||
Reference in New Issue
Block a user