mirror of
https://github.com/django/django.git
synced 2025-06-13 07:29:13 +00:00
Refs #34488 -- Made test files path resolution independent of current working directory in ClearableFileInput selenium tests.
This commit is contained in:
parent
a79c411147
commit
883ce03e43
@ -4,6 +4,7 @@ import re
|
||||
import zoneinfo
|
||||
from datetime import datetime, timedelta
|
||||
from importlib import import_module
|
||||
from pathlib import Path
|
||||
from unittest import skipUnless
|
||||
|
||||
from django import forms
|
||||
@ -1908,7 +1909,7 @@ class RelatedFieldWidgetSeleniumTests(AdminWidgetSeleniumTestCase):
|
||||
class ImageFieldWidgetsSeleniumTests(AdminWidgetSeleniumTestCase):
|
||||
name_input_id = "id_name"
|
||||
photo_input_id = "id_photo"
|
||||
tests_files_folder = "%s/files" % os.getcwd()
|
||||
tests_files_folder = "%s/files" % Path(__file__).parent.parent
|
||||
clear_checkbox_id = "photo-clear_id"
|
||||
|
||||
def _submit_and_wait(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user