Skip to content

Commit

Permalink
re-introduce test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Dec 28, 2024
1 parent e32a00f commit 3a5fcf0
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 12 deletions.
2 changes: 1 addition & 1 deletion fiobank.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ThrottlingError(Exception):
"""Throttling error raised when the API is being used too fast."""

def __str__(self) -> str:
return "Token can be used only once per 30s."
return "Token can be used only once per 30s"


class FioBank(object):
Expand Down
13 changes: 7 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,19 @@ repository = "https://github.com/honzajavorek/fiobank"

[dependency-groups]
dev = [
"pytest<8.0.0,>=7.2.1",
"responses<1.0.0,>=0.22.0",
"mock<6.0.0,>=5.0.1",
"ruff<1.0.0,>=0.8.4",
"pytest-ruff<1.0.0,>=0.4.1",
"mock>=5.0.1",
"pytest-cov>=6.0.0",
"pytest-ruff>=0.4.1",
"pytest>=7.2.1",
"responses>=0.22.0",
"ruff>=0.8.4",
]

[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = "tests"
norecursedirs = "env venv .git"
addopts = "--ff --ruff --ruff-format"
addopts = "--ff --ruff --ruff-format --cov=fiobank --cov-report=term-missing:skip-covered --cov-context=test"
filterwarnings = ["ignore:Using float for money can cause inaccuracies:DeprecationWarning"]

[tool.ruff.lint]
Expand Down
Loading

0 comments on commit 3a5fcf0

Please sign in to comment.