Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidz committed Nov 21, 2024
1 parent bf43d54 commit 2849cc2
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/largemodel_unit_test_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ jobs:
export PRIVATE_MODEL_TESTS_AWS_SECRET_ACCESS_KEY=${{ secrets.PRIVATE_MODEL_TESTS_AWS_SECRET_ACCESS_KEY }}
export PRIVATE_MODEL_TESTS_HF_TOKEN=${{ secrets.PRIVATE_MODEL_TESTS_HF_TOKEN }}
export PYTHONPATH="./marqo/tests/integ_tests:./marqo/src:./marqo"
pytest marqo/tests --largemodel
export PYTHONPATH="./marqo/tests/integ_tests:./marqo/src"
pytest marqo/tests/integ_tests --largemodel
Stop-Runner:
name: Stop self-hosted EC2 runner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from marqo.tensor_search import api
import numpy as np
from marqo.tensor_search.models.api_models import CustomVectorQuery
from tests.tensor_search.backwards_compat.resources import results_2_9
from integ_tests.tensor_search.backwards_compat.resources import results_2_9


class TestSearchRegression(MarqoTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from marqo.core.models.marqo_index_request import FieldRequest
from marqo.api import exceptions as api_exceptions
from marqo.tensor_search import enums
from tests.utils.transition import add_docs_batched
from integ_tests.utils.transition import add_docs_batched
import os
from marqo.vespa.models.delete_document_response import DeleteBatchDocumentResponse, DeleteBatchResponse

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from unittest.mock import patch
import os
import pprint
from tests.utils.transition import *
from integ_tests.utils.transition import *


class TestGetDocuments(MarqoTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from marqo.tensor_search import tensor_search
from marqo.tensor_search.models.search import SearchContext
from integ_tests.marqo_test import MarqoTestCase
from tests.utils.transition import *
from integ_tests.utils.transition import *


class TestNoModel(MarqoTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from marqo.tensor_search.models.search import SearchContext
from integ_tests.marqo_test import MarqoTestCase, TestImageUrls
from marqo.tensor_search.models.api_models import ScoreModifierLists
from tests.tensor_search.integ_tests.common_test_constants import SPECIAL_CHARACTERS
from integ_tests.tensor_search.integ_tests.common_test_constants import SPECIAL_CHARACTERS


class TestSearchSemiStructured(MarqoTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from marqo.tensor_search.models.search import SearchContext
from integ_tests.marqo_test import MarqoTestCase, TestImageUrls
from marqo.tensor_search.models.api_models import ScoreModifierLists
from tests.tensor_search.integ_tests.common_test_constants import SPECIAL_CHARACTERS
from integ_tests.tensor_search.integ_tests.common_test_constants import SPECIAL_CHARACTERS


class TestSearchStructured(MarqoTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from integ_tests.marqo_test import MarqoTestCase, TestImageUrls
from marqo.vespa.models import QueryResult
from marqo.tensor_search.models.api_models import ScoreModifierLists
from tests.tensor_search.integ_tests.common_test_constants import SPECIAL_CHARACTERS
from integ_tests.tensor_search.integ_tests.common_test_constants import SPECIAL_CHARACTERS


class TestSearchUnstructured(MarqoTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/integ_tests/tensor_search/test_boost_field_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from marqo.api.exceptions import IndexNotFoundError, InvalidArgError
from marqo.tensor_search import tensor_search
from integ_tests.marqo_test import MarqoTestCase
from tests.utils.transition import add_docs_caller
from integ_tests.utils.transition import add_docs_caller


@unittest.skip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from marqo.tensor_search import tensor_search
from marqo.tensor_search.models.search import SearchContext
from integ_tests.marqo_test import MarqoTestCase
from tests.utils.transition import *
from integ_tests.utils.transition import *


class TestContextVectors(MarqoTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/integ_tests/tensor_search/test_model_auth_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from marqo.core.inference.download_model_from_s3 import get_s3_model_absolute_cache_path
from marqo.tensor_search.models.external_apis.s3 import S3Location
from unittest import mock
from tests.tensor_search.test_model_auth import _delete_file, _get_base_index_settings
from integ_tests.tensor_search.test_model_auth import _delete_file, _get_base_index_settings
import unittest
import os
import torch
Expand Down
2 changes: 1 addition & 1 deletion tests/integ_tests/tensor_search/test_pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from marqo.tensor_search.enums import SearchMethod, EnvVars
from marqo.core.models.add_docs_params import AddDocsParams
from integ_tests.marqo_test import MarqoTestCase
from tests.utils.transition import add_docs_caller
from integ_tests.utils.transition import add_docs_caller
from marqo.core.models.hybrid_parameters import RetrievalMethod, RankingMethod, HybridParameters


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import copy
import unittest
from unittest import mock
from tests.utils.transition import add_docs_caller
from integ_tests.utils.transition import add_docs_caller
from marqo.api.exceptions import IndexNotFoundError, InvalidArgError
from marqo.tensor_search import tensor_search
from marqo.tensor_search.models.api_models import ScoreModifierLists
Expand Down
2 changes: 1 addition & 1 deletion tests/integ_tests/tensor_search/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from marqo.tensor_search.enums import TensorField, SearchMethod, EnvVars
from marqo.core.models.add_docs_params import AddDocsParams
from integ_tests.marqo_test import MarqoTestCase, TestImageUrls
from tests.utils.transition import add_docs_caller
from integ_tests.utils.transition import add_docs_caller
from marqo.core.utils.prefix import determine_text_prefix
from marqo.core.models.marqo_index import FieldType, UnstructuredMarqoIndex, TextPreProcessing, \
ImagePreProcessing, Model, DistanceMetric, VectorNumericType, HnswConfig, TextSplitMethod
Expand Down

0 comments on commit 2849cc2

Please sign in to comment.