You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the GitHub search to find a similar question and didn't find it.
I searched in the documentation/README.
I already searched in Google "How to do X" and didn't find any information.
I already read and followed all the tutorial in the docs/README and didn't find an answer.
Commit to Help
I commit to help with one of those options 👆
Example Code
- Clone the repo
- Replace `changethis` values in `.env`
- In `~`, run: `docker compose watch`
- In `~/backend`, run: `bash ./scripts/test.sh`
Description
Clone the repo
In ~, run: docker compose watch
In ~/backend, run: bash ./scripts/test.sh
Result: all test cases pass if env is not edited and has default changethis.
However if I edit the .env and change the values that had changethis set, 15 test cases fail, and the first superuser row is deleted from the users table.
Every error comes from the post request in ~/backend/app/tests/utils/utils.py at L23:
r=client.post(f"{settings.API_V1_STR}/login/access-token", data=login_data)
print(r.json()) # {'detail': 'Incorrect email or password'}
Before running the tests, it is possible to successfully login with the email and password into the dashboard on :5173.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
~
, run:docker compose watch
~/backend
, run:bash ./scripts/test.sh
Result: all test cases pass if env is not edited and has default changethis.
However if I edit the .env and change the values that had
changethis
set, 15 test cases fail, and the first superuser row is deleted from the users table.Every error comes from the post request in
~/backend/app/tests/utils/utils.py
at L23:Before running the tests, it is possible to successfully login with the email and password into the dashboard on :5173.
Operating System
Linux
Operating System Details
Debian 12
Python Version
3.11.2
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions