We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a79c411 commit 883ce03Copy full SHA for 883ce03
tests/admin_widgets/tests.py
@@ -4,6 +4,7 @@
4
import zoneinfo
5
from datetime import datetime, timedelta
6
from importlib import import_module
7
+from pathlib import Path
8
from unittest import skipUnless
9
10
from django import forms
@@ -1908,7 +1909,7 @@ def test_ForeignKey_using_to_field(self):
1908
1909
class ImageFieldWidgetsSeleniumTests(AdminWidgetSeleniumTestCase):
1910
name_input_id = "id_name"
1911
photo_input_id = "id_photo"
- tests_files_folder = "%s/files" % os.getcwd()
1912
+ tests_files_folder = "%s/files" % Path(__file__).parent.parent
1913
clear_checkbox_id = "photo-clear_id"
1914
1915
def _submit_and_wait(self):
0 commit comments