Skip to content

Commit

Permalink
add short summary for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioteula committed Oct 9, 2024
1 parent f1468d4 commit 33649e3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KEY=
SECRET=
TAG=
COUNTRY=
API_KEY=
API_SECRET=
AFFILIATE_TAG=
COUNTRY_CODE=
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ repos:
- id: test
name: Running tests
language: system
entry: "python -m coverage run -m pytest"
entry: "python -m coverage run -m pytest -rs"
pass_filenames: false

- id: test
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ build:
coverage: build
@touch .env
@docker run -t --rm -u "${UID}:${GID}" -v "${PWD}:/code" --env-file .env python-amazon-paapi -c \
"python -m coverage run -m pytest && python -m coverage xml && python -m coverage report"
"python -m coverage run -m pytest -rs && python -m coverage xml && python -m coverage report"

test: build
@touch .env
@docker run -t --rm -u "${UID}:${GID}" -v "${PWD}:/code" --env-file .env python-amazon-paapi -c "python -m pytest"
@docker run -t --rm -u "${UID}:${GID}" -v "${PWD}:/code" --env-file .env python-amazon-paapi -c "python -m pytest -rs"

test-all-python-tags:
@touch .env
@for tag in $$PYTHON_TAGS; do \
docker build --build-arg TAG="$$tag" --build-arg UID="${UID}" --build-arg GID="${GID}" -t python-amazon-paapi .; \
docker run -t --rm -u "${UID}:${GID}" -v "${PWD}:/code" python-amazon-paapi -c "python -m pytest"; \
docker run -t --rm -u "${UID}:${GID}" -v "${PWD}:/code" python-amazon-paapi -c "python -m pytest -rs"; \
done

lint: build
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ exclude = [
"ANN201",
"D101",
"D102",
"D103",
"D107",
"PT009",
"PT027",
Expand Down

0 comments on commit 33649e3

Please sign in to comment.