Skip to content

Commit 1baca60

Browse files
committed
fix: test_should_index_property with correct negative case
1 parent 1db4e45 commit 1baca60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def property_should_index(self):
3535

3636
@property
3737
def property_should_not_index(self):
38-
return True
38+
return False
3939

4040
@property
4141
def property_string(self):

tests/test_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class ExampleIndex(AlgoliaIndex):
254254

255255
class ExampleIndex(AlgoliaIndex):
256256
fields = 'name'
257-
should_index = 'static_should_not_index'
257+
should_index = 'property_should_not_index'
258258

259259
index = ExampleIndex(Example, self.client)
260260
self.assertFalse(index._should_index(self.instance),

0 commit comments

Comments
 (0)