From 1a260697add33524004b380f2debf5a4ec445e7c Mon Sep 17 00:00:00 2001 From: Chris van Run Date: Thu, 16 Jan 2025 14:51:15 +0100 Subject: [PATCH] Fix static code problems. --- tests/async_integration_tests.py | 2 +- tests/conftest.py | 2 +- tests/integration_tests.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/async_integration_tests.py b/tests/async_integration_tests.py index 2c170c0..8ab8650 100644 --- a/tests/async_integration_tests.py +++ b/tests/async_integration_tests.py @@ -487,7 +487,7 @@ async def test_add_and_update_file_to_archive_item(local_grand_challenge): # retrieve existing archive item pk items = await get_archive_items(c, archive.pk, len(old_items_list)) - old_items_pks = set(item.pk for item in old_items_list) + old_items_pks = {item.pk for item in old_items_list} # get the new item target_archive_item = None diff --git a/tests/conftest.py b/tests/conftest.py index bfa6c56..c312beb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,11 +7,11 @@ from tempfile import TemporaryDirectory from time import sleep from unittest.mock import patch -from dotenv import load_dotenv import httpx import pytest import yaml +from dotenv import load_dotenv from tests.integration_tests import ADMIN_TOKEN diff --git a/tests/integration_tests.py b/tests/integration_tests.py index 89a0dfe..317be97 100644 --- a/tests/integration_tests.py +++ b/tests/integration_tests.py @@ -446,7 +446,7 @@ def test_add_and_update_file_to_archive_item(local_grand_challenge): # retrieve existing archive item pk items = get_archive_items(c, archive.pk, len(old_items_list)) - old_items_pks = set(item.pk for item in old_items_list) + old_items_pks = {item.pk for item in old_items_list} # get the new item target_archive_item = None