diff --git a/app/docker-compose.debug.yml b/app/docker-compose.debug.yml index 16d8006..602c799 100644 --- a/app/docker-compose.debug.yml +++ b/app/docker-compose.debug.yml @@ -1,8 +1,5 @@ -version: "3.8" - # run with `docker compose -f` # combines ports and env vars with the main docker-compose.yml main-app service - services: main-app: build: diff --git a/app/docker-compose.yml b/app/docker-compose.yml index 94be634..ddb0c30 100644 --- a/app/docker-compose.yml +++ b/app/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3' - services: main-db: diff --git a/app/tests/src/db/test_bulk_ops.py b/app/tests/src/db/test_bulk_ops.py index 8b72d14..69ea88d 100644 --- a/app/tests/src/db/test_bulk_ops.py +++ b/app/tests/src/db/test_bulk_ops.py @@ -15,9 +15,14 @@ class Number: num: int +_next_id = 0 + + def get_random_number_object() -> Number: + global _next_id + _next_id += 1 return Number( - id=str(random.randint(1000000, 9999999)), + id=str(_next_id), num=random.randint(1, 10000), )