Skip to content

Commit 89851a3

Browse files
authored
Merge pull request #83 from GabrielSalla/move-plugin-component-selection
Move plugin components selection to plugins
2 parents 2bcf1d1 + 5004340 commit 89851a3

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

src/databases/databases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
from typing import Any, Coroutine, cast
99

1010
from configs import configs
11+
from plugins.pool_select import get_plugin_pool
1112
from utils.async_tools import do_concurrently
1213

13-
from .pool_select import get_plugin_pool
1414
from .protocols import Pool
1515

1616
_logger = logging.getLogger("database")

src/message_queue/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from typing import Any
22

33
from configs import configs
4+
from plugins.queue_select import get_plugin_queue
45

56
from .internal_queue import InternalQueue
67
from .protocols import Message, Queue
7-
from .queue_select import get_plugin_queue
88

99
queue: Queue
1010

src/databases/pool_select.py renamed to src/plugins/pool_select.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
from typing import cast
33

44
import plugins
5-
6-
from .protocols import Pool
5+
from databases.protocols import Pool
76

87
_logger = logging.getLogger("pool_select")
98

File renamed without changes.

tests/databases/test_pool_select.py renamed to tests/plugins/test_pool_select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import pytest
44

5-
import databases.pool_select as pool_select
65
import plugins
6+
import plugins.pool_select as pool_select
77
from tests.test_utils import assert_message_in_log
88

99

tests/message_queue/test_queue_select.py renamed to tests/plugins/test_queue_select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22

3-
import message_queue.queue_select as queue_select
43
import plugins
4+
import plugins.queue_select as queue_select
55

66

77
@pytest.fixture(scope="module", autouse=True)

0 commit comments

Comments
 (0)