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:
Eric Callahan 2022-10-18 07:35:47 -04:00
parent 0f8638fec7
commit 15f37827a1
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
5 changed files with 18 additions and 18 deletions

View File

@ -10,9 +10,9 @@ import shlex
import tempfile
import subprocess
from typing import Iterator, Dict, AsyncIterator, Any
from moonraker import Server
from eventloop import EventLoop
import utils
from moonraker.server import Server
from moonraker.eventloop import EventLoop
from moonraker import utils
import dbtool
from fixtures import KlippyProcess, HttpClient, WebsocketClient

View File

@ -5,10 +5,10 @@ import hashlib
import confighelper
import shutil
import time
from confighelper import ConfigError
from moonraker import Server
from utils import ServerError
from components import gpio
from moonraker.confighelper import ConfigError
from moonraker.server import Server
from moonraker.utils import ServerError
from moonraker.components import gpio
from mocks import MockGpiod
from typing import TYPE_CHECKING, Dict
if TYPE_CHECKING:

View File

@ -5,8 +5,8 @@ import pytest_asyncio
import asyncio
import copy
from inspect import isawaitable
from moonraker import Server
from utils import ServerError
from moonraker.server import Server
from moonraker.utils import ServerError
from typing import TYPE_CHECKING, AsyncIterator, Dict, Any, Iterator
if TYPE_CHECKING:

View File

@ -3,12 +3,12 @@ import pytest
import asyncio
import pathlib
from typing import TYPE_CHECKING, Dict
from moonraker import ServerError
from klippy_connection import KlippyRequest
from moonraker.server import ServerError
from moonraker.klippy_connection import KlippyRequest
from mocks import MockReader, MockWriter
if TYPE_CHECKING:
from moonraker import Server
from server import Server
from conftest import KlippyProcess
@pytest.mark.usefixtures("klippy")

View File

@ -6,12 +6,12 @@ import socket
import pathlib
from collections import namedtuple
from moonraker import CORE_COMPONENTS, Server, API_VERSION
from moonraker import main as servermain
from eventloop import EventLoop
from utils import ServerError
from confighelper import ConfigError
from components.klippy_apis import KlippyAPI
from moonraker.server import CORE_COMPONENTS, Server, API_VERSION
from moonraker.server import main as servermain
from moonraker.eventloop import EventLoop
from moonraker.utils import ServerError
from moonraker.confighelper import ConfigError
from moonraker.components.klippy_apis import KlippyAPI
from mocks import MockComponent, MockWebsocket
from typing import (