diff options
author | Alassane Yattara <alassane.yattara@savoirfairelinux.com> | 2023-11-09 16:55:41 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-09 17:01:18 +0000 |
commit | dcb6a5cca6ae42bb27cdc56784dc4e32176b9169 (patch) | |
tree | 20c4b068f091e114f8e1b9ed7f160d8c29dc356c /bitbake/lib/toaster/tests/views/test_views.py | |
parent | 20705f46af4edb101892b355350265d1c37ba1a2 (diff) | |
download | poky-dcb6a5cca6ae42bb27cdc56784dc4e32176b9169.tar.gz |
bitbake: toaster: fixed pytest error: Database access not allowed, use the "django_db"
Pytest failed on functional/test_functional_basic because database access not allowed
- we should use "django_db" fixture to allowed db access
Note: Pytest-django takes a conservative approach to enabling database access.
By default your tests will fail if they try to access the database.
Only if you explicitly request database access will this be allowed.
https://pytest-django.readthedocs.io/en/latest/helpers.html#pytest-mark-django-db-request-database-access
(Bitbake rev: 5f92a6b13cdea26b26ff939e9a3f746f7d0937b7)
Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/tests/views/test_views.py')
0 files changed, 0 insertions, 0 deletions