Live tests for ECB source.

This commit is contained in:
Chris Berkhout 2021-07-09 12:34:35 +02:00
parent 6a794cdc6f
commit 2aa4319dbb
7 changed files with 227 additions and 18 deletions

View file

@ -10,5 +10,15 @@ format: ## Format source code
poetry run black .
.PHONY: test
test: ## Run tests
poetry run pytest
test: ## Run non-live tests
poetry run pytest -m "not live" --color=yes
.PHONY: test-live
test-live: ## Run live tests
poetry run pytest -m live --color=yes
.PHONY: coverage
coverage: ## Generate and open coverage report
poetry run coverage run --source=pricehist -m pytest
poetry run coverage html
xdg-open htmlcov/index.html