levenshtein_distance is a float. Fix test. Sorry for the noise, I currently can't run the tests on my local machine.
This commit is contained in:
parent
ea13b04e8e
commit
c0f4b82f1b
|
@ -134,7 +134,7 @@ class SolrConfigXMLAdapter(XMLAdapterBase):
|
|||
value.append(elem.getAttribute('name'))
|
||||
self.context.field_list = tuple(map(str, value))
|
||||
elif child.nodeName == 'levenshtein_distance':
|
||||
value = int(str(child.getAttribute('value')))
|
||||
value = float(str(child.getAttribute('value')))
|
||||
self.context.levenshtein_distance = value
|
||||
|
||||
def _createNode(self, name, value):
|
||||
|
|
|
@ -33,6 +33,6 @@
|
|||
value="]" />
|
||||
<highlight_fragsize
|
||||
value="100" />
|
||||
<levenshtein_distance value="0" />
|
||||
<levenshtein_distance value="0.0" />
|
||||
</settings>
|
||||
</object>
|
||||
|
|
Loading…
Reference in New Issue