Skip to content

Commit a6cceee

Browse files
committed
fix unit tests
1 parent 5d5ea60 commit a6cceee

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/build-and-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ jobs:
6060
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
6161
run: poetry install --no-interaction --no-root
6262
- name: Test Code
63-
run: poetry run pytest
63+
run: poetry run pytest tests/
6464
- name: Lint Code
6565
run: poetry run ruff .

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ docker-create-db-migration: ## Create new alembic database migration aka databa
2727

2828
.PHONY: docker-test
2929
docker-test: ## Run project tests
30-
docker-compose -f docker-compose.yml -f docker-compose.test.yml run --rm app pytest
30+
docker-compose -f docker-compose.yml -f docker-compose.test.yml run --rm app pytest tests
3131

3232
.PHONY: docker-test-snapshot
3333
docker-test-snapshot: ## Run project tests with inline snapshot

performance/locustfile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ class Stuff(HttpUser):
55
wait_time = between(1, 3)
66

77
@task
8-
def test_find(self):
8+
def find_stuff(self):
99
self.client.get("/v1/stuff/string")
1010

1111
@task
12-
def test_find_pool(self):
12+
def find_stuff_with_pool(self):
1313
self.client.get("/v1/stuff/pool/string")

0 commit comments

Comments
 (0)