From 36c8ca48a8c6151f713c093a23de110901ba6b02 Mon Sep 17 00:00:00 2001 From: Julius Unverfehrt Date: Mon, 11 Jul 2022 10:33:34 +0200 Subject: [PATCH] refactor nothing part 2 --- test/fixtures/input.py | 2 +- test/fixtures/server.py | 2 +- test/unit_tests/server/buffer_test.py | 2 +- test/unit_tests/server/pipeline_test.py | 2 +- test/unit_tests/server/stream_buffer_test.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/fixtures/input.py b/test/fixtures/input.py index f71ee5f..11a5ba7 100644 --- a/test/fixtures/input.py +++ b/test/fixtures/input.py @@ -6,7 +6,7 @@ import pytest from PIL import Image from funcy import lmap, compose, flatten, lflatten, omit, second, first, lzip, merge -from pyinfra.server.dispatcher.dispatcher import Nothing +from pyinfra.server.nothing import Nothing from pyinfra.server.normalization import normalize_item from pyinfra.server.packing import pack, unpack from pyinfra.utils.func import star, lift, lstarlift diff --git a/test/fixtures/server.py b/test/fixtures/server.py index ede7ea1..d63aaca 100644 --- a/test/fixtures/server.py +++ b/test/fixtures/server.py @@ -14,7 +14,7 @@ from PIL import Image from funcy import retry, project, omit from waitress import serve -from pyinfra.server.dispatcher.dispatcher import Nothing +from pyinfra.server.nothing import Nothing from pyinfra.server.server import ( set_up_processing_server, ) diff --git a/test/unit_tests/server/buffer_test.py b/test/unit_tests/server/buffer_test.py index 828308f..e420343 100644 --- a/test/unit_tests/server/buffer_test.py +++ b/test/unit_tests/server/buffer_test.py @@ -3,7 +3,7 @@ from funcy import compose, lmapcat, compact, flatten, identity from pyinfra.exceptions import NoBufferCapacity from pyinfra.server.buffering.bufferize import bufferize -from pyinfra.server.dispatcher.dispatcher import Nothing +from pyinfra.server.nothing import Nothing def test_buffer(buffer_size): diff --git a/test/unit_tests/server/pipeline_test.py b/test/unit_tests/server/pipeline_test.py index 50d60e6..a9a83ac 100644 --- a/test/unit_tests/server/pipeline_test.py +++ b/test/unit_tests/server/pipeline_test.py @@ -3,7 +3,7 @@ from funcy import rcompose, compose, project, merge from pyinfra.server.buffering.stream import FlatStreamBuffer from pyinfra.server.client_pipeline import ClientPipeline -from pyinfra.server.dispatcher.dispatcher import Nothing +from pyinfra.server.nothing import Nothing from pyinfra.server.dispatcher.dispatchers.queue import QueuedStreamFunctionDispatcher from pyinfra.server.dispatcher.dispatchers.rest import RestDispatcher from pyinfra.server.interpreter.interpreters.identity import IdentityInterpreter diff --git a/test/unit_tests/server/stream_buffer_test.py b/test/unit_tests/server/stream_buffer_test.py index 3f2fa98..ec2ef2c 100644 --- a/test/unit_tests/server/stream_buffer_test.py +++ b/test/unit_tests/server/stream_buffer_test.py @@ -2,7 +2,7 @@ import pytest from funcy import repeatedly, takewhile, notnone, lmap, lmapcat, lflatten from pyinfra.server.buffering.stream import FlatStreamBuffer, StreamBuffer -from pyinfra.server.dispatcher.dispatcher import Nothing +from pyinfra.server.nothing import Nothing from pyinfra.server.stream.queued_stream_function import QueuedStreamFunction from pyinfra.utils.func import lift, foreach, starlift