From 63ed329fd95943d4176e58da4107ec530b5505b7 Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Thu, 18 Sep 2025 21:06:59 +0200 Subject: [PATCH] code quality fixes --- tests/integration/conftest.py | 4 ---- tests/unit/test_annotation_repository.py | 30 ++++++++++++------------ 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 06a115d..f4a18ce 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -2,14 +2,10 @@ import logging import os -import shutil -import tempfile -from pathlib import Path import json from collections.abc import Generator from uuid import UUID from io import BytesIO -import pandas as pd from PIL import Image import pytest import structlog diff --git a/tests/unit/test_annotation_repository.py b/tests/unit/test_annotation_repository.py index a87309d..868b27c 100644 --- a/tests/unit/test_annotation_repository.py +++ b/tests/unit/test_annotation_repository.py @@ -50,21 +50,21 @@ class TestAnnotationRepository(unittest.TestCase): cls.job_id = UUID("d87022f8-4169-4d69-8512-bbd65cc1cb23") cls.bad_job_id = "not-a-uuid" cls.annotation = Annotation( - angle=AngleEnum.HIGH, - angle_uncertainty=True, - colour=ColourEnum.HIGH, - colour_uncertainty=False, - contact=ContactEnum.OFFER, - contact_uncertainty=True, - depth=DepthEnum.LOW, - depth_uncertainty=False, - distance=DistanceEnum.CLOSE, - distance_uncertainty=True, - lighting=LightingEnum.MEDIUM, - lighting_uncertainty=False, - point_of_view=PointOfViewEnum.FRONTAL, - point_of_view_uncertainty=True, - ) + angle=AngleEnum.HIGH, + angle_uncertainty=True, + colour=ColourEnum.HIGH, + colour_uncertainty=False, + contact=ContactEnum.OFFER, + contact_uncertainty=True, + depth=DepthEnum.LOW, + depth_uncertainty=False, + distance=DistanceEnum.CLOSE, + distance_uncertainty=True, + lighting=LightingEnum.MEDIUM, + lighting_uncertainty=False, + point_of_view=PointOfViewEnum.FRONTAL, + point_of_view_uncertainty=True, + ) cls.bad_annotation = {"not_an_annotation": "irrelevant value"} @classmethod