Skip to content

Commit

Permalink
Update test_select.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzq50 authored Sep 20, 2024
1 parent ac1c408 commit 297d68c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/test_pysdk/test_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ def http(request):
@pytest.fixture(scope="class")
def setup_class(request, local_infinity, http):
if local_infinity:
module = importlib.import_module("infinity_embedded.index")
globals()["index"] = module
module = importlib.import_module("infinity_embedded.common")
func = getattr(module, 'ConflictType')
globals()['ConflictType'] = func
func = getattr(module, 'InfinityException')
globals()['InfinityException'] = func
uri = common_values.TEST_LOCAL_PATH
request.cls.infinity_obj = infinity_embedded.connect(uri)
elif http:
Expand Down

0 comments on commit 297d68c

Please sign in to comment.