1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Removed redundant ArchiveTest.test_extract_method() test.

The extract() function has the same code as used in the test method
for Archive.extract().
This commit is contained in:
Nick Pope 2019-02-15 23:34:21 +00:00 committed by Mariusz Felisiak
parent 0509148c24
commit 421c4cd2ee

View File

@ -5,7 +5,7 @@ import sys
import tempfile
import unittest
from django.utils.archive import Archive, extract
from django.utils.archive import extract
TEST_DIR = os.path.join(os.path.dirname(__file__), 'archives')
@ -28,11 +28,6 @@ class ArchiveTester:
def tearDown(self):
os.chdir(self.old_cwd)
def test_extract_method(self):
with Archive(self.archive) as archive:
archive.extract(self.tmpdir)
self.check_files(self.tmpdir)
def test_extract_function(self):
extract(self.archive_path, self.tmpdir)
self.check_files(self.tmpdir)