Questions tagged [testdriven.io]
39 questions
18
votes
4 answers
Github Action flake8 fails: f-string is missing placeholders
Following the course "FastAPI-TDD with Docker" I got the project to build and pass locally, then in the github action it fails:
It seems the offensive line in the source is:
response = test_app_with_db.get(f"/summaries/")
and the Github Action…

Blaise Pabon
- 181
- 1
- 1
- 3
4
votes
1 answer
Testdriven.io: Test-Driven Development with FastAPI and Docker Error when running Github Action Test Docker Image
I am working through the Testdriven.io: Test-Driven Development with FastAPI and Docker course and am currently on the continuous integration section. In this section you use github actions to build your docker image and run tests and linting and…

spetz83
- 494
- 6
- 21
4
votes
2 answers
testdriven.io: Test-Driven Development with FastAPI and Docker: Heroku: Getting asyncpg.exceptions.InvalidAuthorizationSpecificationError
I'm going through the course Test-Driven Development with FastAPI and Docker from testdriven.io and just stucked with releasing my app to heroku (Part 2: Deployment). Everything was fine before I released the image to heroku:
heroku…

user8902140
- 53
- 5
2
votes
1 answer
testdriven.io: Developing a Real-Time Taxi App with Django Channels and Angular: unable to sign-up from front end on gcp
I am following the tutorial https://testdriven.io/courses/real-time-app-with-django-channels-and-angular/ on a GCE VM and am able to interact with the front end and Django admin and APIs. However, when I try to click the sign-up (http POST) from the…

Eric Kumar
- 31
- 4
2
votes
1 answer
testdriven.io: Test-Driven Development with FastAPI and Docker: Having errors on running docker container
I'm going through the course Test-Driven Development with FastAPI and Docker from testdriven.io. When I was about to start the docker container I was met with this error:
ERROR: for web Cannot start service web: OCI runtime create failed:…

LearningNoob
- 662
- 6
- 23
2
votes
1 answer
Unable to send POST request using Flask test client
I'm following the TestDriven.io course, after setting up restful routes I encounter this error even after adding the route handler in project/api/users.py:
test_app_is_development (test_config.TestDevelopmentConfig) ... ok
test_app_is_production…

turing
- 21
- 3
1
vote
2 answers
How to set a BucketPolicy through cloudformation after April 2023 ACL restriction
I'm following testdrive.io's serverless-fastapi course. It uses cloudformation to setup the bucket and bucket policy. The bucket is created just fine, however there are issues creating the bucket policy. First I had to comment out # AccessControl:…

Micah Pearce
- 1,805
- 3
- 28
- 61
1
vote
1 answer
Pulling and pushing images on Github actions fails
I'm following the testdriven.io course Test-Driven Development with FastAPI and Docker
I'm at the end of the Continuous integration chapter, I just pushed a pull request with all the GitHub actions, and it fails.
My errors from GitHub actions:
Here…

GMARVILLE
- 21
- 8
1
vote
0 answers
How to startapp from inside docker-compose
I have a problem in the steps of testdriven.io The definitive guide to Django Celery, when i want to start a new tdd app if i execute these commands
`
$ docker-compose exec web bash
(container)$ ./manage.py startapp tdd
`
it creates an app that is…

InsanePwnerTeo
- 11
- 2
1
vote
2 answers
testdriven.io: The Definitive Guide to Celery and Django. All containers logs are "Waiting for PostgreSQL to become available..."
I've followed each step of part 1 chapter 4 and literally copy pasted the code as shown.
docker-compose is able to build the containers but I always get the Waiting for PostgresSQL to become available being logged from all the other containers as…

Shreyas Somashekara
- 11
- 2
1
vote
0 answers
testdriven.io: The Definitive Guide to Celery and Django. Running task from Django shell causes error
I am currently going through 'The Definitive Guide to Celery and Django' course by testdriven.io. I've managed to containerize the whole application. Everything was built correctly and seemed to work just fine, but when I tried to enter the Django…

kibraks
- 21
- 2
1
vote
0 answers
flask-react-aws recreate_db SCRAM auth error
In Getting Started, Part 1, Chapter 4, of Deploying a Flask and React Microservice to AWS ECS, when running
$ docker-compose exec api python manage.py recreate_db
Receiving the following error:
sqlalchemy.exc.OperationalError:…

ericpardee
- 31
- 6
1
vote
1 answer
Where are github secrets stored?
I'm on the CI part of the course
I'll start by saying all works well, and I could follow the process with ease. However, there something that works, and I cannot figure out how. Lets take this part of the main.yml file:
- name: Log in to GitHub…

GuruYaya
- 545
- 3
- 16
1
vote
0 answers
testdriven.io: Test-Driven Development with FastAPI and Docker: Why do we pull an image, build it again and test it instead of just testing directly?
Taken from the tutorial we see the following:
In the build job, we:
Check out the repository so the job has access to it
Log in to GitHub Packages
Pull the image if it exists
Build the image
Push the image up to GitHub Packages
The same steps are…

DonCoder
- 11
- 2
1
vote
1 answer
.dockerignore being ignored by docker compose
I have the following docker-compose file:
version: '3.7'
services:
web:
build: ./project
command: uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8000
volumes:
- ./project:/usr/src/app
ports:
-…

jmo
- 21
- 3