Skip to content

Commit

Permalink
Add test coverage for the API
Browse files Browse the repository at this point in the history
  • Loading branch information
anarute committed Oct 24, 2023
1 parent 50975aa commit d9c37dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ __pycache__
*.egg-info
.pytest_cache
*.key*
.coverage

web/v2/assets/
12 changes: 10 additions & 2 deletions api/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ basepython = python3
usedevelop = false
deps =
pytest >= 7.3.1,
httpx >= 0.25.0
httpx >= 0.25.0,
pytest-cov
changedir = {toxinidir}
commands = pytest -v
commands = pytest -v --cov --cov-append --cov-report=term-missing

[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage html

0 comments on commit d9c37dc

Please sign in to comment.