Skip to content

Commit 9583348

Browse files
author
RamezIssac
committed
Merge branch 'hotfix/v2.9.2'
2 parents 54c75a8 + bfcfe07 commit 9583348

File tree

6 files changed

+29
-5
lines changed

6 files changed

+29
-5
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
----------
22
CHANGELOG
33
----------
4+
v 2.9.2 (24 July 2023)
5+
- Update readme to show how to run tests
6+
- update demo project to use Django latest releases
7+
- Enhance the tests to cover more.
8+
49
v 2.9.1 (7 June 2022)
510
- Django 4 Upgrade. (@youssriaboelseod)
611

README.rst

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
django-tabular-permissions
23
##########################
34
Display django permissions in a user friendly, translatable and customizable widget .
@@ -150,7 +151,23 @@ To run the demo project in the repo on your local you need
150151
4. `python manage.py migrate`
151152
5. `python manage.py runserver`
152153

153-
Enjoy and feel free to report any bugs or make pull requests.
154+
155+
Tests
156+
-----
157+
158+
To run the tests, you need to install the test requirements::
159+
160+
cd tests
161+
pip install -r requirements.txt
162+
163+
Then run::
164+
165+
python runtests.py
166+
167+
With Coverage ::
168+
169+
coverage run runtests.py
170+
coverage html
154171

155172

156173
Cross Reference

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='django-tabular-permissions',
12-
version='2.9.1',
12+
version='2.9.2',
1313
packages=['tabular_permissions'],
1414
include_package_data=True,
1515
license='BSD License',

tabular_permissions/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.9.1'
1+
__version__ = '2.9.2'

tests/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
selenium
2-
pyquery
1+
pyquery
2+
coverage

tests/test_tabular_permissions/tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,5 @@ def test_initial_widget_is_visible_on_extra_permissions(self):
149149
doc = pq(response.content)
150150
table = doc.find('[name=user_permissions]')
151151
self.assertEqual(len(table), 1)
152+
custom_perm = doc.find("#id__can_do_something")
153+
self.assertEqual(len(custom_perm), 1)

0 commit comments

Comments
 (0)