Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Aug 16, 2024
1 parent 5566153 commit eac2c1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/share/bin/test_sharectl.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from share.bin.util import execute_cmd
import share.version

from tests.share.search._testutil import patch_index_strategies
from tests.share.search import patch_index_strategies


def run_sharectl(*args):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import contextlib
import typing
from unittest import mock

if typing.TYPE_CHECKING:
from share.search import index_strategy
from share.search import index_strategy


@contextlib.contextmanager
Expand Down
1 change: 1 addition & 0 deletions tests/share/search/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

@pytest.fixture
def mock_elastic_clients(settings):
# set elastic urls to non-empty but non-usable values
settings.ELASTICSEARCH5_URL = 'fake://bleh'
settings.ELASTICSEARCH8_URL = 'fake://bluh'
with mock.patch('share.search.index_strategy.sharev2_elastic5.elasticsearch5'):
Expand Down

0 comments on commit eac2c1d

Please sign in to comment.