Fix unit tests in CI (#895)

* use demo data rather than simple fixtures

* Remove admin creation in CI

* Adjust unit tests

* Remove token data from debug log
This commit is contained in:
Oliver authored and GitHub committed 2026-10-21 00:48:28 +11:00
1 parent 23abf50145
commit 7554bbdfa2
6 files changed
+53 -34

No files matched your search

+2 -5
View File
@@ -16,11 +16,8 @@ env:
INVENTREE_MEDIA_ROOT: ../test_inventree_media
INVENTREE_STATIC_ROOT: ../test_inventree_static
INVENTREE_BACKUP_DIR: ../test_inventree_backup
INVENTREE_ADMIN_USER: testuser
INVENTREE_ADMIN_PASSWORD: testpassword
INVENTREE_ADMIN_EMAIL: test@test.com
jobs:
jobs:
test:
runs-on: ubuntu-latest
@@ -78,7 +75,7 @@ jobs:
cd inventree_server
invoke install
invoke migrate
invoke dev.import-fixtures
invoke dev.setup-test -i
invoke dev.server -a 127.0.0.1:8000 &
invoke wait
sleep 30