-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to run tests with fastapi templates on Linux and Mac #12
Comments
Can you copy and paste the full error message? (That starts with SSL error) You might also need to scroll up. |
Did you set up a Postgres database locally with the correct username/password? (The same as what would have been setup by the dev container) |
@pamelafox I set up a Postgres database locally with the correct username/password, the full error message as follow: |
I made various updates to the tests and also added instructions for running Postgres locally. Can you try it again? If you're still getting an SSL error, I wonder why it's trying to use SSL. You could try explicitly setting a local environment variable of POSTGRES_SSL to "disable". |
Another thought - if you're still getting SSL issues, can you try changing line 19 in models to py to:
|
Test again, the current issue no longer exists. |
Describe the issue:
When test
Running tests
with fastapi templates on Linux and Mac, runpython3 -m pytest
, get error as follow:Repro Steps:
python3 -m pip install -r requirements-dev.in
playwright install --with-deps
python3 -m pytest
Environment:
https://github.com/Azure-Samples/azure-fastapi-postgres-flexible-aca
https://github.com/Azure-Samples/azure-fastapi-postgres-flexible-appservice
https://github.com/Azure-Samples/azure-fastapi-cosmos-postgres-aca
https://github.com/Azure-Samples/azure-fastapi-cosmos-postgres-appservice
https://github.com/Azure-Samples/azure-fastapi-postgres-addon-aca
Expected behavior:
Running
python3 -m pytest
with flask templates can pass on Linux and Mac.@pamelafox for notification.
The text was updated successfully, but these errors were encountered: