forked from expo/troggle
ruf cleanup imports, bigly.
This commit is contained in:
@@ -26,10 +26,8 @@ todo = """ADD TESTS when we are redirecting /expofiles/ to a remote file-deliver
|
||||
"""
|
||||
|
||||
import re
|
||||
import unittest
|
||||
from http import HTTPStatus
|
||||
|
||||
from django.test import Client, SimpleTestCase, TestCase
|
||||
from django.test import Client, TestCase
|
||||
|
||||
|
||||
# class SimplePageTest(unittest.TestCase):
|
||||
@@ -76,12 +74,12 @@ class PageTests(TestCase):
|
||||
|
||||
def test_expoweb_dir(self):
|
||||
response = self.client.get("/handbook")
|
||||
content = response.content.decode()
|
||||
response.content.decode()
|
||||
self.assertEqual(response.status_code, 302) # directory, so redirects to /index.htm
|
||||
|
||||
def test_expoweb_dirslash(self):
|
||||
response = self.client.get("/handbook/")
|
||||
content = response.content.decode()
|
||||
response.content.decode()
|
||||
self.assertEqual(response.status_code, 302) # directory, so redirects to /index.htm
|
||||
|
||||
def test_expoweb_dir_no_index(self):
|
||||
@@ -211,7 +209,7 @@ class PageTests(TestCase):
|
||||
def test_page_admindocs_exped(self):
|
||||
# Get redirected to login page
|
||||
response = self.client.get("/admin/doc/models/core.expedition/")
|
||||
content = response.content.decode()
|
||||
response.content.decode()
|
||||
self.assertEqual(response.status_code, 302)
|
||||
|
||||
def test_page_expofiles_root_dir(self):
|
||||
|
||||
Reference in New Issue
Block a user