Drop support for Django 2.x and Python 3.5

This commit is contained in:
medmunds
2022-08-29 13:10:14 -07:00
committed by Mike Edmunds
parent a4f50c4340
commit 3f05623a2f
7 changed files with 37 additions and 280 deletions

View File

@@ -36,10 +36,7 @@ SAMPLE_EMAIL_FILENAME = "sample_email.txt"
def test_file_path(filename):
"""Returns path to a test file"""
# Must convert to a plain str while we support Python 3.5,
# because django.core.mail uses os.path functions that don't
# accept pathlib.Path until Python 3.6.
return str(TEST_FILES_DIR.joinpath(filename))
return TEST_FILES_DIR.joinpath(filename)
def test_file_content(filename):