File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -104,20 +104,23 @@ Follow these steps to run all unit- and end-to-end tests.
104
104
105
105
git clone https://github.com/jrief/django-admin-sortable2.git
106
106
cd django-admin-sortable2
107
- npm install --also =dev
107
+ npm install --include =dev
108
108
npm run build
109
109
python -m pip install Django
110
110
python -m pip install -r testapp/requirements.txt
111
111
python -m playwright install
112
112
python -m playwright install-deps
113
- python -m pytest testapp
113
+
114
+ # we use the default template files and patch them, rather than using our own modified one
114
115
django_version=$( python -c ' from django import VERSION; print("{0}.{1}".format(*VERSION))' )
115
116
mkdir adminsortable2/templates/adminsortable2/edit_inline
116
117
curl --no-progress-meter --output adminsortable2/templates/adminsortable2/edit_inline/stacked-django-$django_version .html https://raw.githubusercontent.com/django/django/stable/$django_version .x/django/contrib/admin/templates/admin/edit_inline/stacked.html
117
118
curl --no-progress-meter --output adminsortable2/templates/adminsortable2/edit_inline/tabular-django-$django_version .html https://raw.githubusercontent.com/django/django/stable/$django_version .x/django/contrib/admin/templates/admin/edit_inline/tabular.html
118
119
patch -p0 adminsortable2/templates/adminsortable2/edit_inline/stacked-django-$django_version .html patches/stacked-django-4.0.patch
119
120
patch -p0 adminsortable2/templates/adminsortable2/edit_inline/tabular-django-$django_version .html patches/tabular-django-4.0.patch
120
121
122
+ python -m pytest testapp
123
+
121
124
.. _Playwright-Python : https://playwright.dev/python/
122
125
.. _pytest-django : https://pytest-django.readthedocs.io/en/latest/
123
126
You can’t perform that action at this time.
0 commit comments