Skip to content

Commit 671367f

Browse files
committed
update README.md
1 parent 6122c48 commit 671367f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ help:
99
@echo " make clean"
1010
@echo " make clean-test"
1111

12-
test:
13-
docker-compose run --rm backend pytest
14-
1512
up:
1613
docker-compose up -d
1714

@@ -23,6 +20,7 @@ build:
2320

2421
bash:
2522
docker-compose run --rm backend bash
23+
2624
lint:
2725
docker-compose run --rm backend pre-commit run --all-files
2826

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ $ make build
7373
$ make start
7474
```
7575

76-
__Note__: Running the test on the Container CLI `pytest` or when you use the command `make start` the container will be started and the tests will be run before the Uvicorn server is started.
76+
### Testing
77+
78+
While i use `HTTPX` an HTTP client for Python 3, to test the API, most of the tests are using a live log thats why need before to run a server using `uvicorn` and migrate the database, then you will have the ability to run the tests. To have a clean environment, recommended to use Docker for that, when you start the containers try to open the application container and then run `pytest` to test the API.
7779

7880
### Environment variables
7981

0 commit comments

Comments
 (0)