Skip to content

Commit

Permalink
chore(api/tests): don't create a DB for every test
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Nov 3, 2023
1 parent 866bd9a commit bf12dec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ api-start: ## Start the API

.PHONY: api-test
api-test: ## Test the API
@docker compose run --rm api pytest --no-cov-on-fail --cov -vvv -s
@docker compose run --rm api pytest --no-cov-on-fail --cov -vvv --create-db -s

.PHONY: build
build: ## Build the containers
Expand Down
2 changes: 1 addition & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ max-args = 10

[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "outdated.settings"
addopts = "--create-db"
addopts = "--reuse-db"

[tool.coverage.run]
source = ["."]
Expand Down

0 comments on commit bf12dec

Please sign in to comment.