Skip to content

Commit

Permalink
eliminate more star imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Wiggins authored and Roy Wiggins committed Dec 12, 2024
1 parent c4acba1 commit d788106
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/tests/dispatch/test_restart_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
import unittest
import uuid
from pathlib import Path
from typing import Callable, Tuple, Dict
from typing import Callable, Tuple, Dict, List

import common.config as config
import pytest
import routing
import routing.generate_taskfile
from common.constants import mercure_actions, mercure_names
from common.types import *
from common.types import Module, Rule, Config
from dispatch.send import execute
from docker.models.containers import ContainerCollection
# import processor
Expand Down
1 change: 1 addition & 0 deletions app/tests/dispatch/test_send.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from subprocess import CalledProcessError
from unittest.mock import call

import common
from common.constants import mercure_names
from common.monitor import m_events, severity, task_event
from dispatch.send import execute, is_ready_for_sending
Expand Down
2 changes: 2 additions & 0 deletions app/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

import pytest
from common.types import FolderTarget, Module, Rule
from testing_integration_common import send_dicom, is_dicoms_in_folder, is_dicoms_received, is_series_registered
from testing_integration_common import *

from tests.testing_common import create_minimal_dicom


Expand Down
6 changes: 4 additions & 2 deletions app/tests/test_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@
from collections.abc import Iterable
from itertools import product
from pathlib import Path
from typing import Callable, Iterator, Dict
from typing import Callable, Iterator, Dict, Any, List
from unittest.mock import call

import pytest
from common import notification
from common.constants import mercure_events
from common.types import *
from common.types import Module, Rule, Config
from dispatch import dispatcher
from docker.models.containers import ContainerCollection
from process import processor
from pytest_mock import MockerFixture
from routing import router
from testing_common import make_fake_processor, FakeDockerContainer, mock_incoming_uid
from testing_common import *
from common import config

logger = config.get_logger()

Expand Down
5 changes: 3 additions & 2 deletions app/tests/test_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import routing.generate_taskfile
from common.constants import mercure_names, mercure_version
from common.monitor import task_event
from common.types import *
from common.types import Dict, Config, Module, Rule, Task, TaskProcessing, List
from docker.models.containers import ContainerCollection
from docker.models.images import ImageCollection
from nomad.api.job import Job
Expand All @@ -28,7 +28,8 @@
from pytest_mock import MockerFixture
from routing import router
from testing_common import *
from testing_common import mock_task_ids
from testing_common import mock_task_ids, FakeDockerContainer, FakeImageContainer, make_fake_processor, mock_incoming_uid
from common import config

logger = config.get_logger()

Expand Down
5 changes: 3 additions & 2 deletions app/tests/test_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@
import os
import unittest
import uuid

from pathlib import Path
from typing import Tuple
from unittest.mock import call

import common
import routing.generate_taskfile
from common.monitor import m_events, severity, task_event
from common.types import *
from common.types import Rule, Task, TaskStudy
from dispatch import dispatcher
from pyfakefs.fake_filesystem import FakeFilesystem
from routing import router
from testing_common import *
from testing_common import mock_task_ids
from testing_common import mock_task_ids, generate_uid, mock_incoming_uid, process_dicom

# import common.config as config

Expand Down
5 changes: 4 additions & 1 deletion app/tests/test_studies.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
import asyncio
import unittest
import uuid
import shutil

from datetime import timedelta
from pathlib import Path
from typing import Tuple

import pytest
from common import notification
from common.constants import mercure_events, mercure_names
from common.types import *
from common.types import Rule, Module
from freezegun import freeze_time
from nomad.api.job import Job
from process import processor
from pyfakefs.fake_filesystem import FakeFilesystem
from routing import router
from testing_common import mock_incoming_uid
from testing_common import *


Expand Down

0 comments on commit d788106

Please sign in to comment.