summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/tests/browser/selenium_helpers_base.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-16 23:55:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-24 11:24:03 +0100
commit38a29dff866604ec37f983f11b487a630cd87b56 (patch)
treebe53e877f897c7fc470e4e603fe5ae3f1c260cb0 /bitbake/lib/toaster/tests/browser/selenium_helpers_base.py
parentdab2dcae89d349366edc3cfa09c312fab8cf14b8 (diff)
downloadpoky-38a29dff866604ec37f983f11b487a630cd87b56.tar.gz
bitbake: toaster/tests/functional: Improve project creation tests
Mixing database access and access via a running server is fraught with danger and problems. The "django_db" marker means the transactions are dropped at the end of the test but the transactions made via the webapi remain so the database ends up confused at best. Drop the database accesses and use the server API. This means slightly abusing the typeahead to get lists of projects in the database. Add code to delete a project if it already exists. This allows tests to re-run against an existing database. Deletion is done using the server API but this means handling CSRF tokens. Add requests module requirement to requirements file since the project creation code now uses requests. (Bitbake rev: 738270c53a08ddc95400de70f3dd8c08b2940182) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/tests/browser/selenium_helpers_base.py')
0 files changed, 0 insertions, 0 deletions