Commit Graph

57 Commits (e0c0460e5928e18be75cb4cf75edadadb186f269)

Author SHA1 Message Date
Fabio Caccamo d269de0b63 Add Russian language to tests. 2023-06-26 21:45:36 +02:00
Fabio Caccamo a3737c9892 Fix multidb tests. 2023-03-02 14:09:38 +01:00
Fabio Caccamo 4deefc20b7 Add `flake8-bugbear` to `pre-commit`. 2023-03-01 17:54:58 +01:00
Fabio Caccamo 191d82a5c2 Set max line length to `88`. 2023-02-13 15:52:13 +01:00
Fabio Caccamo 81ab67953a Upgrade syntax for `Python >= 3.8`. 2023-02-10 16:21:36 +01:00
Fabio Caccamo fa81b2ea5e Reformat code. 2023-02-09 19:14:51 +01:00
Fabio Caccamo 71cc60bea3 Add `metadata` module and read package attrs dynamically. 2023-02-09 19:14:33 +01:00
Fabio Caccamo d0f37806c7 Update `pre-commit`. 2023-02-06 10:35:32 +01:00
Fabio Caccamo ecc1cd77de Increase `flake8` checks. 2023-01-24 18:19:04 +01:00
Fabio Caccamo b8a8c1595f Add `pyupgrade` to `pre-commit` config. 2022-12-31 18:53:01 +01:00
Mounir b3540bc019
Make `Theme.get_active_theme` class method a manager method. (#230)
- Make `get_active_theme` a manager method instead of class method
- Replace `get_active_theme` by `get_active`
- Refactor signals handlers
2022-12-15 11:32:33 +01:00
Éric 15da0bfd9a
minor cleanups (#225)
* use normal html self-closing tags

* stop using obsolete test integration

* make test more straightforward

* removed unused setting
2022-12-11 22:53:05 +01:00
Éric 19cbeead58
Include date hierarchy in quick removal links (#218)
* Include date hierarchy in quick removal links

* use date field name in removal link

* reduce diff

* tweak some details

* start adding tests

* use mock without spec :(

it's not easy to instantiate ChangeList, and speccing from
the class means that many attributes are not recognized

* more tests

* more tests

* more checks for generated URLs

* better tags and tests

* compat for tox 4
2022-12-11 20:44:31 +01:00
Fabio Caccamo 98b8025ed7 Replace `str.format` with `f-strings`. 2022-12-06 13:44:32 +01:00
derzinn 14634aa505
Add german translation (#222)
* Added german translation

* Updated languages for test cases

* Updated identical message strings

* Updated django.po with corrected file paths

* Re-generated django.mo file

* Language lists sorted by code for test cases
2022-12-05 10:13:11 +01:00
Fabio Caccamo 60649ac4e6 Remove `post_migrate` signal handler and multi db test. 2022-12-03 14:01:57 +01:00
Éric d62593e01b
Drop old Python and Django versions (#220)
* drop old python and django versions

* fix tests

* remove compat module entirely

Co-authored-by: Fabio Caccamo <fabio.caccamo@gmail.com>
2022-12-03 13:49:09 +01:00
Fabio Caccamo 9c0251b7a4 Fix tests. 2022-12-01 10:24:51 +01:00
Fabio Caccamo 2141298e27 Add Farsi language to `tests.settings.LANGUAGES`.
Co-Authored-By: Éric <635179+merwok@users.noreply.github.com>
2022-12-01 09:52:34 +01:00
Vasanth cc1f72b23d
Add tabbed changeform support (#211).
* WIP : basic templates

* Add params

* Working override

* Use headerless version only during tabs

* Move CSS to separate file

* Extract js to static folder

* script is not self-closing

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use classList for updating classes

* Add EOF (newline) to new text files

* a simple test to keep up code coverage

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fieldsets are not tabbed by default

* rename templatetag

* use default page if show_*_tabs are false

* Narrow down css to admin-interface

* Fix typo

* keep codacy happy

* prefix tab classes with tabbed-changeform-

* horizontal scrolling

* Update colors

* color updates

* add back missing font bold

Co-authored-by: vaz <vmohan@lenbox.io>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-26 09:54:33 +01:00
Vasanth 23511d04b2
Fix #208 - do not assume active DB when not specified (#210).
* Do not assume active DB when not specified

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add db routing test case

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* one more test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use assertRaises instead of expectedFailure

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Catch a general exception for  django < 2.0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use `with` instead of callable

* skip test for django < 2.0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove repeated test

Co-authored-by: vaz <vmohan@lenbox.io>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-26 09:53:33 +01:00
Fabio Caccamo 78041ea28b Separate `test_repr` and `test_str`. 2022-11-18 13:31:57 +01:00
Fabio Caccamo e1020a29dc Remove unnecesary `using("default")`. 2022-11-18 13:31:44 +01:00
Vasanth 946b9c98e0
Respect 'using' in signals (#200) 2022-11-18 13:07:59 +01:00
Fabio Caccamo 98b7228f95 Fix tests. 2022-10-17 14:50:14 +02:00
Fabio Caccamo 03e5cbdf9e Fix `pt-BR` language code. 2022-10-17 14:42:07 +02:00
Fabio Caccamo d48c8cc182 Fix `pt_br` language code. 2022-10-17 14:37:08 +02:00
Fabio Caccamo ead930d3b4 Replace `update-translations.sh` script with `makemessages --all`. 2022-10-17 14:24:35 +02:00
Fabio Caccamo f4617ac126 Update `tests.settings.LANGUAGES` list. 2022-10-17 14:21:44 +02:00
Fabio Caccamo 5e58c35b08 Run `pre-commit`. 2022-10-14 17:31:57 +02:00
Éric f8ace75f36
Add option for list filter quick remove. #183
* add option for list filter quick remove

* move transform from css to python

* make template tag more resilient for unusual filters

* fix tests

* rename field, move rendering to template, change style

* fix tests
2022-10-11 18:15:21 +02:00
MG Santos 06069644fd
Removed public disclosures of the lib's version. #154 2022-02-22 16:22:19 +01:00
Fabio Caccamo e64614274c Reformatted code with Black. 2022-02-08 18:58:59 +01:00
Fabio Caccamo cc4c379465 Fixed missing comma in tests settings `MIDDLEWARE_CLASSES`. #145 2022-01-04 18:16:53 +01:00
Fabio Caccamo 70ed000f08 Replaced travis with GitHub action workflow. #142 2021-12-07 10:43:46 +01:00
Fabio Caccamo 11f7440273 Improved tests coverage. 2020-10-21 12:27:14 +02:00
Fabio Caccamo 826340c9be Fixed loaddata error with initial_data.json fixture. #97 2020-09-15 09:49:50 +02:00
Fabio Caccamo 28dfc70474 Fixed tests warning (admin.W411). 2020-09-15 09:47:01 +02:00
Fabio Caccamo 9b56343a81 Added idempotent deploy support. 2019-03-28 12:08:17 +01:00
Fabio Caccamo 18d2281011 Splitted tests to multiple files. 2019-02-21 17:17:59 +01:00
Fabio Caccamo 8bffc8f82a Added postgres to tox and travis and included django 2.2. 2019-02-06 16:23:22 +01:00
Fabio Caccamo 1870635697 Removed extra white space. [ci skip] 2019-02-06 16:22:27 +01:00
Fabio Caccamo ab0afff087 Added automatic check of 3rd party installed apps according to django version. 2018-10-11 12:11:32 +02:00
Fabio Caccamo 6a1897b95c Updated tests, tox and travis to support django 2.1 and python 3.7. 2018-10-10 15:48:43 +02:00
Fabio Caccamo 7bc15ba61e Removed unused context argument 2017-09-29 12:12:44 +02:00
Fabio Caccamo bb29c637ff Fixed tests error 2017-08-24 18:37:28 +02:00
Fabio Caccamo a8e9fffdac Increased coverage 2017-08-24 18:23:35 +02:00
Fabio Caccamo 3b982a84c3 Improved coverage 2017-08-24 14:27:34 +02:00
Fabio Caccamo e19cd51803 Added per-request cache to get_admin_interface_theme template tag #19 2017-06-09 11:58:10 +02:00
Fabio Caccamo 8a9842c219 Added possibility to customize the default logo color 2017-05-24 11:44:46 +02:00