From 8d65f899e6bb940b21165f045f1887534a12c693 Mon Sep 17 00:00:00 2001 From: Daniel Faber <59205635+DanielSchiessl@users.noreply.github.com> Date: Sun, 10 Dec 2023 01:30:14 +0100 Subject: [PATCH] update postgres and remove unused imports --- docker-compose.yml | 2 +- src/allocation/domain/model.py | 2 +- tests/integration/test_uow.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f964ab74..284a6478 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -51,7 +51,7 @@ services: - "5005:80" postgres: - image: postgres:9.6 + image: postgres:16.1 environment: - POSTGRES_USER=allocation - POSTGRES_PASSWORD=abc123 diff --git a/src/allocation/domain/model.py b/src/allocation/domain/model.py index dd4ac782..db4aa702 100644 --- a/src/allocation/domain/model.py +++ b/src/allocation/domain/model.py @@ -2,7 +2,7 @@ from dataclasses import dataclass from datetime import date from typing import Optional, List, Set -from . import commands, events +from . import events class Product: diff --git a/tests/integration/test_uow.py b/tests/integration/test_uow.py index 2fdf196b..6c4ea45c 100644 --- a/tests/integration/test_uow.py +++ b/tests/integration/test_uow.py @@ -3,7 +3,6 @@ import time import traceback from typing import List -from unittest.mock import Mock import pytest from allocation.domain import model from allocation.service_layer import unit_of_work