From 9d7e31cc74d0bb4b56c8cbc791fd8d968d426e51 Mon Sep 17 00:00:00 2001 From: Jacob Walls <38668450+jacobtylerwalls@users.noreply.github.com> Date: Fri, 26 Feb 2021 14:49:21 -0500 Subject: [PATCH] Removed unused code in admin_views tests. Unused since its introduction in 7b21bfc0745f92f83a6826a3d3e58797fb74e32 and 1e4ad6f118007547c7e627f1d5bd11bfb2992bf9. --- tests/admin_views/admin.py | 7 ------- tests/admin_views/models.py | 2 -- 2 files changed, 9 deletions(-) diff --git a/tests/admin_views/admin.py b/tests/admin_views/admin.py index 92dca62035..951d62d228 100644 --- a/tests/admin_views/admin.py +++ b/tests/admin_views/admin.py @@ -1,6 +1,4 @@ import datetime -import os -import tempfile from io import StringIO from wsgiref.util import FileWrapper @@ -11,7 +9,6 @@ from django.contrib.admin.views.main import ChangeList from django.contrib.auth.admin import GroupAdmin, UserAdmin from django.contrib.auth.models import Group, User from django.core.exceptions import ValidationError -from django.core.files.storage import FileSystemStorage from django.core.mail import EmailMessage from django.db import models from django.forms.models import BaseModelFormSet @@ -363,10 +360,6 @@ class OldSubscriberAdmin(admin.ModelAdmin): actions = None -temp_storage = FileSystemStorage(tempfile.mkdtemp()) -UPLOAD_TO = os.path.join(temp_storage.location, 'test_upload') - - class PictureInline(admin.TabularInline): model = Picture extra = 1 diff --git a/tests/admin_views/models.py b/tests/admin_views/models.py index f449ad792b..81948e05a2 100644 --- a/tests/admin_views/models.py +++ b/tests/admin_views/models.py @@ -1,5 +1,4 @@ import datetime -import os import tempfile import uuid @@ -345,7 +344,6 @@ class EmptyModel(models.Model): temp_storage = FileSystemStorage(tempfile.mkdtemp()) -UPLOAD_TO = os.path.join(temp_storage.location, 'test_upload') class Gallery(models.Model):