Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antibagr committed Nov 16, 2023
1 parent 9a562b7 commit 8d2bb08
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ help: ## Display this help screen
.PHONY: help

install: ## Install project dependencies
poetry install --no-interaction --no-ansi
poetry install --no-interaction --no-ansi --no-root
.PHONY: install

format: ## Format the source code
Expand Down Expand Up @@ -42,7 +42,7 @@ compose-down: ## Stop the development Django server with docker-compose

tests-units: ## Run unit tests
poetry run coverage run -m pytest -s ./tests/units
poetry run coverage report --precision=2 -m
poetry run coverage report --precision=2 --fail-under=75
.PHONY: tests-units

tests-integrations: ## Run integration tests
Expand Down
20 changes: 19 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ mypy = "1.7.0"
bandit = {extras = ["toml"], version = "1.7.5"}
pytest-cov = "^4.1.0"
coverage = "^7.3.2"
pytest-asyncio = "^0.21.1"

[tool.black]
line-length = 100
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions tests/integrations/test_main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_integration_app() -> None:
assert True
File renamed without changes.
5 changes: 5 additions & 0 deletions tests/units/test_app/test_main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from app.main import main


def test_main() -> None:
main()

0 comments on commit 8d2bb08

Please sign in to comment.