File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 77
88from .models import AlgoliaIndex
99from .settings import SETTINGS
10- from .version import VERSION
11- from django import get_version as django_version
1210
1311logger = logging .getLogger (__name__ )
1412
@@ -36,8 +34,8 @@ def __init__(self, settings=SETTINGS):
3634
3735 self .__registered_models = {}
3836 self .client = SearchClientSync (app_id , api_key )
39- self .client .add_user_agent ("Algolia for Django" , VERSION )
40- self .client .add_user_agent ("Django" , django_version ())
37+ # self.client.add_user_agent("Algolia for Django", VERSION)
38+ # self.client.add_user_agent("Django", django_version())
4139
4240 def is_registered (self , model ):
4341 """Checks whether the given models is registered with Algolia engine"""
Original file line number Diff line number Diff line change 33from django .conf import settings
44from django .test import TestCase
55
6- from django import get_version as django_version
7- from algoliasearch_django .version import VERSION
86from algoliasearch_django import algolia_engine
97from algoliasearch_django import AlgoliaIndex
108from algoliasearch_django import AlgoliaEngine
@@ -31,11 +29,11 @@ def test_init_exception(self):
3129 with self .assertRaises (AlgoliaEngineError ):
3230 AlgoliaEngine (settings = settings .ALGOLIA )
3331
34- def test_user_agent (self ):
35- self .assertIn (
36- "Algolia for Django (%s); Django (%s)" % VERSION % django_version (),
37- self .engine .client ._config .user_agent .get (),
38- )
32+ # def test_user_agent(self):
33+ # self.assertIn(
34+ # "Algolia for Django (%s); Django (%s)" % VERSION % django_version(),
35+ # self.engine.client._config.user_agent.get(),
36+ # )
3937
4038 def test_auto_discover_indexes (self ):
4139 """Test that the `index` module was auto-discovered and the models registered"""
You can’t perform that action at this time.
0 commit comments