Skip to content

Commit be301d0

Browse files
Clean Clutter
1 parent 3102847 commit be301d0

24 files changed

Lines changed: 43 additions & 19 deletions

tests/cli/test_h5rewrite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import time
66

77
import h5py
8+
89
from dlstbx.cli.h5rewrite import cli
910
from dlstbx.swmr import h5watcher
1011

tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
import ispyb.sqlalchemy
88
import pkg_resources
99
import pytest
10-
from dlstbx import mimas
11-
from dlstbx.mimas.specification import BeamlineSpecification, DCClassSpecification
1210
from sqlalchemy import create_engine
1311
from sqlalchemy.orm import sessionmaker
1412

13+
from dlstbx import mimas
14+
from dlstbx.mimas.specification import BeamlineSpecification, DCClassSpecification
15+
1516

1617
@pytest.fixture(scope="session")
1718
def testconfig():

tests/controller/strategy/test_simple.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from unittest import mock
55

66
import pytest
7+
78
from dlstbx.controller.strategy.simple import SimpleStrategy
89
from dlstbx.controller.strategyenvironment import StrategyEnvironment
910

tests/controller/test_strategyenvironment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from unittest import mock
55

66
import pytest
7+
78
from dlstbx.controller.strategyenvironment import StrategyEnvironment
89

910

tests/dc_sim/test_dc_sim.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
from dataclasses import dataclass
66
from unittest import mock
77

8+
import pytest
9+
810
import dlstbx.dc_sim.check
911
import dlstbx.dc_sim.definitions
10-
import pytest
1112

1213
all_programs = ["fast_dp", "xia2 3dii", "xia2 dials", "autoPROC", "autoPROC+STARANISO"]
1314

tests/dc_sim/test_em_sim.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
from dataclasses import dataclass
55
from unittest import mock
66

7+
import pytest
8+
79
import dlstbx.dc_sim.check
810
import dlstbx.dc_sim.definitions
9-
import pytest
1011

1112

1213
@dataclass(frozen=True)

tests/ispybtbx/test_ispyb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
import time
66
from unittest import mock
77

8-
import dlstbx.ispybtbx
98
import ispyb.sqlalchemy
109
import pytest
1110
import sqlalchemy
11+
from sqlalchemy.orm import sessionmaker
12+
13+
import dlstbx.ispybtbx
1214
from dlstbx import crud
1315
from dlstbx.ispybtbx import ispyb_filter, ispybtbx
14-
from sqlalchemy.orm import sessionmaker
1516

1617
ds = {
1718
"gphl_C2": 1397955,

tests/mimas/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import pytest
66
import zocalo.configuration
7+
78
from dlstbx import mimas
89

910

tests/mimas/test_core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import functools
44

55
import pytest
6+
67
from dlstbx import mimas
78
from dlstbx.mimas import (
89
MimasDCClass,

tests/mimas/test_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import functools
44

55
import zocalo.configuration
6+
67
from dlstbx.mimas import MimasDCClass, MimasEvent, MimasScenario, handle_scenario
78

89

0 commit comments

Comments
 (0)