Skip to content

Commit 87b3be2

Browse files
committed
Closes #9434: Enabled django-rich test runner for more user-friendly output
1 parent a74dba8 commit 87b3be2

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

base_requirements.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,14 @@ django-pglocks
3030
# https://github.com/korfuri/django-prometheus
3131
django-prometheus
3232

33-
# Django chaching backend using Redis
33+
# Django caching backend using Redis
3434
# https://github.com/jazzband/django-redis
3535
django-redis
3636

37+
# Django extensions for Rich (terminal text rendering)
38+
# https://github.com/adamchainz/django-rich
39+
django-rich
40+
3741
# Django integration for RQ (Reqis queuing)
3842
# https://github.com/rq/django-rq
3943
django-rq

docs/release-notes/version-3.3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
### Other Changes
2020

2121
* [#9261](https://github.com/netbox-community/netbox/issues/9261) - `NetBoxTable` no longer automatically clears pre-existing calls to `prefetch_related()` on its queryset
22+
* [#9434](https://github.com/netbox-community/netbox/issues/9434) - Enabled `django-rich` test runner for more user-friendly output
2223

2324
### REST API Changes
2425

netbox/netbox/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ def _setting(name, default=None):
423423

424424
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
425425

426+
TEST_RUNNER = "django_rich.test.RichRunner"
427+
426428
# Exclude potentially sensitive models from wildcard view exemption. These may still be exempted
427429
# by specifying the model individually in the EXEMPT_VIEW_PERMISSIONS configuration parameter.
428430
EXEMPT_EXCLUDE_MODELS = (

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ django-mptt==0.13.4
77
django-pglocks==1.0.4
88
django-prometheus==2.2.0
99
django-redis==5.2.0
10+
django-rich-1.4.0
1011
django-rq==2.5.1
1112
django-tables2==2.4.1
1213
django-taggit==2.1.0

0 commit comments

Comments
 (0)