test: fix imports
The tests are stale and will not run successfully against the current code. This will be addressed in a future series of patches. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
0f8638fec7
commit
15f37827a1
|
@ -10,9 +10,9 @@ import shlex
|
||||||
import tempfile
|
import tempfile
|
||||||
import subprocess
|
import subprocess
|
||||||
from typing import Iterator, Dict, AsyncIterator, Any
|
from typing import Iterator, Dict, AsyncIterator, Any
|
||||||
from moonraker import Server
|
from moonraker.server import Server
|
||||||
from eventloop import EventLoop
|
from moonraker.eventloop import EventLoop
|
||||||
import utils
|
from moonraker import utils
|
||||||
import dbtool
|
import dbtool
|
||||||
from fixtures import KlippyProcess, HttpClient, WebsocketClient
|
from fixtures import KlippyProcess, HttpClient, WebsocketClient
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@ import hashlib
|
||||||
import confighelper
|
import confighelper
|
||||||
import shutil
|
import shutil
|
||||||
import time
|
import time
|
||||||
from confighelper import ConfigError
|
from moonraker.confighelper import ConfigError
|
||||||
from moonraker import Server
|
from moonraker.server import Server
|
||||||
from utils import ServerError
|
from moonraker.utils import ServerError
|
||||||
from components import gpio
|
from moonraker.components import gpio
|
||||||
from mocks import MockGpiod
|
from mocks import MockGpiod
|
||||||
from typing import TYPE_CHECKING, Dict
|
from typing import TYPE_CHECKING, Dict
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
@ -5,8 +5,8 @@ import pytest_asyncio
|
||||||
import asyncio
|
import asyncio
|
||||||
import copy
|
import copy
|
||||||
from inspect import isawaitable
|
from inspect import isawaitable
|
||||||
from moonraker import Server
|
from moonraker.server import Server
|
||||||
from utils import ServerError
|
from moonraker.utils import ServerError
|
||||||
from typing import TYPE_CHECKING, AsyncIterator, Dict, Any, Iterator
|
from typing import TYPE_CHECKING, AsyncIterator, Dict, Any, Iterator
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
@ -3,12 +3,12 @@ import pytest
|
||||||
import asyncio
|
import asyncio
|
||||||
import pathlib
|
import pathlib
|
||||||
from typing import TYPE_CHECKING, Dict
|
from typing import TYPE_CHECKING, Dict
|
||||||
from moonraker import ServerError
|
from moonraker.server import ServerError
|
||||||
from klippy_connection import KlippyRequest
|
from moonraker.klippy_connection import KlippyRequest
|
||||||
from mocks import MockReader, MockWriter
|
from mocks import MockReader, MockWriter
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from moonraker import Server
|
from server import Server
|
||||||
from conftest import KlippyProcess
|
from conftest import KlippyProcess
|
||||||
|
|
||||||
@pytest.mark.usefixtures("klippy")
|
@pytest.mark.usefixtures("klippy")
|
||||||
|
|
|
@ -6,12 +6,12 @@ import socket
|
||||||
import pathlib
|
import pathlib
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
from moonraker import CORE_COMPONENTS, Server, API_VERSION
|
from moonraker.server import CORE_COMPONENTS, Server, API_VERSION
|
||||||
from moonraker import main as servermain
|
from moonraker.server import main as servermain
|
||||||
from eventloop import EventLoop
|
from moonraker.eventloop import EventLoop
|
||||||
from utils import ServerError
|
from moonraker.utils import ServerError
|
||||||
from confighelper import ConfigError
|
from moonraker.confighelper import ConfigError
|
||||||
from components.klippy_apis import KlippyAPI
|
from moonraker.components.klippy_apis import KlippyAPI
|
||||||
from mocks import MockComponent, MockWebsocket
|
from mocks import MockComponent, MockWebsocket
|
||||||
|
|
||||||
from typing import (
|
from typing import (
|
||||||
|
|
Loading…
Reference in New Issue