Skip to content

Commit

Permalink
make tests not a package again
Browse files Browse the repository at this point in the history
  • Loading branch information
trvto committed Aug 31, 2023
1 parent e846e8a commit e263953
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
Empty file removed pytket/tests/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion pytket/tests/assertion_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
)

from pytket.pauli import PauliStabiliser, Pauli
from .simulator import TketSimShotBackend
from simulator import TketSimShotBackend # type: ignore


def test_assertion_init() -> None:
Expand Down
4 changes: 2 additions & 2 deletions pytket/tests/backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
from pytket.backends.backend_exceptions import InvalidResultType, CircuitNotRunError
from pytket.backends.status import CircuitStatus, StatusEnum

from .strategies import outcomearrays, backendresults
from .simulator import TketSimShotBackend, TketSimBackend
from strategies import outcomearrays, backendresults # type: ignore
from simulator import TketSimShotBackend, TketSimBackend # type: ignore


def test_resulthandle() -> None:
Expand Down
2 changes: 1 addition & 1 deletion pytket/tests/backendinfo_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from pytket.architecture import SquareGrid, RingArch, FullyConnected
from pytket.circuit import OpType, Node

import tests.strategies as st
import strategies as st # type: ignore


def test_nodes() -> None:
Expand Down
4 changes: 2 additions & 2 deletions pytket/tests/circuit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
import pytest # type: ignore

from hypothesis import given, settings
import tests.strategies as st
from tests.useful_typedefs import ParamType
import strategies as st # type: ignore
from useful_typedefs import ParamType # type: ignore

curr_file_path = Path(__file__).resolve().parent

Expand Down
2 changes: 1 addition & 1 deletion pytket/tests/classical_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

from pytket.passes import DecomposeClassicalExp, FlattenRegisters

from .strategies import reg_name_regex, binary_digits, uint32
from strategies import reg_name_regex, binary_digits, uint32 # type: ignore

curr_file_path = Path(__file__).resolve().parent

Expand Down
2 changes: 1 addition & 1 deletion pytket/tests/passes_serialisation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
MultiGateReorderRoutingMethod,
BoxDecompositionRoutingMethod,
)
from tests.useful_typedefs import ParamType
from useful_typedefs import ParamType # type: ignore


def standard_pass_dict(content: Dict[str, Any]) -> Dict[str, Any]:
Expand Down
2 changes: 1 addition & 1 deletion pytket/tests/predicates_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
from sympy import Symbol
from typing import Dict, Any, List, cast

from tests.useful_typedefs import ParamType as Param
from useful_typedefs import ParamType as Param # type: ignore


circ2 = Circuit(1)
Expand Down
2 changes: 1 addition & 1 deletion pytket/tests/qubitpaulioperator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from pytket.pauli import Pauli, QubitPauliString, pauli_string_mult
from pytket.circuit import Qubit

import tests.strategies as st
import strategies as st # type: ignore


def test_QubitPauliOperator_addition() -> None:
Expand Down
2 changes: 1 addition & 1 deletion pytket/tests/transform_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
import json
import pytest

from .useful_typedefs import ParamType
from useful_typedefs import ParamType # type: ignore


def get_test_circuit() -> Circuit:
Expand Down
2 changes: 1 addition & 1 deletion pytket/tests/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
import types
from sympy import symbols # type: ignore
from typing import Any, Callable, Tuple, Dict, List
from .simulator import TketSimShotBackend, TketSimBackend
from simulator import TketSimShotBackend, TketSimBackend # type: ignore


def test_append_measurements() -> None:
Expand Down

0 comments on commit e263953

Please sign in to comment.