Skip to content

Commit

Permalink
Update the tests and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
RamezIssac committed Jul 24, 2023
1 parent 54c75a8 commit a96757c
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
----------
CHANGELOG
----------
v 2.9.2 (24 July 2023)
- Update readme to show how to run tests
- update demo project to use Django latest releases
- Enhance the tests to cover more.

v 2.9.1 (7 June 2022)
- Django 4 Upgrade. (@youssriaboelseod)

Expand Down
19 changes: 18 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

django-tabular-permissions
##########################
Display django permissions in a user friendly, translatable and customizable widget .
Expand Down Expand Up @@ -150,7 +151,23 @@ To run the demo project in the repo on your local you need
4. `python manage.py migrate`
5. `python manage.py runserver`

Enjoy and feel free to report any bugs or make pull requests.

Tests
-----

To run the tests, you need to install the test requirements::

cd tests
pip install -r requirements.txt

Then run::

python runtests.py

With Coverage ::

coverage run runtests.py
coverage html


Cross Reference
Expand Down
2 changes: 1 addition & 1 deletion tabular_permissions/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.9.1'
__version__ = '2.9.2'
4 changes: 2 additions & 2 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
selenium
pyquery
pyquery
coverage
2 changes: 2 additions & 0 deletions tests/test_tabular_permissions/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,5 @@ def test_initial_widget_is_visible_on_extra_permissions(self):
doc = pq(response.content)
table = doc.find('[name=user_permissions]')
self.assertEqual(len(table), 1)
custom_perm = doc.find("#id__can_do_something")
self.assertEqual(len(custom_perm), 1)

0 comments on commit a96757c

Please sign in to comment.