daevaorn / djapian

High level Xapian integration for Django
Other
6 stars 3 forks source link

Query test fails in 2.1 (#r207) #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. python manage.py test

What is the expected output?
Ran 28 tests in 24.773s

OK

What do you see instead?

FAIL: test_result_count (djapian.tests.query._QueryTest_active:True)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jnt/django/molnet/thirdparty/djapian/tests/query.py", line 12, in test_result_count
    self.assertEqual(len(self.result), count)
AssertionError: 0 != 3

----------------------------------------------------------------------
Ran 28 tests in 24.044s

FAILED (failures=1)

Original issue reported on code.google.com by jonasnoc...@gmail.com on 9 Apr 2009 at 5:56

GoogleCodeExporter commented 9 years ago
Attached a patch, changing "active:True" to "active:1".

Original comment by jonasnoc...@gmail.com on 9 Apr 2009 at 5:57

Attachments:

GoogleCodeExporter commented 9 years ago
I think that it is not the best solution. I''ll try to find another solution.

Original comment by daevaorn on 10 Apr 2009 at 2:58

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 10 Apr 2009 at 2:58

GoogleCodeExporter commented 9 years ago
This is mysql issue with type convertion

Original comment by daevaorn on 19 Sep 2009 at 9:42