twistar.tests.test_dbobject.DBObjectTest.test_delete_all fails
Closed this issue · 2 comments
bburky commented
Just installed twistar via pip and ran the tests.
trial twistar
twistar.tests.test_dbconfig
DBConfigTest
test_colname_escaping ... [OK]
test_delete ... [OK]
test_insert ... [OK]
test_insert_many ... [OK]
test_insert_obj ... [OK]
test_select ... [OK]
test_unicode_logging ... [OK]
test_update ... [OK]
test_update_obj ... [OK]
twistar.tests.test_dbobject
DBObjectTest
test_afterInit ... [OK]
test_all ... [OK]
test_beforeDelete ... [OK]
test_count ... [OK]
test_count_all ... [OK]
test_creation ... [OK]
test_delete ... [OK]
test_delete_all ... [ERROR]
test_find ... [OK]
test_findBy ... [OK]
test_findOrCreate ... [OK]
test_loadRelations ... [OK]
test_refresh ... [OK]
test_update ... [OK]
test_validation ... [OK]
test_validation_function ... [OK]
twistar.tests.test_relationships
RelationshipTest
test_belongs_to ... [OK]
test_clear_belongs_to ... [OK]
test_clear_habtm ... [OK]
test_clear_has_many ... [OK]
test_clear_jointable_on_delete_habtm ... [OK]
test_clear_jointable_on_delete_habtm_with_custom_args ... [OK]
test_habtm ... [OK]
test_habtm_count ... [OK]
test_habtm_count_with_args ... [OK]
test_habtm_get_with_args ... [OK]
test_has_many ... [OK]
test_has_many_count ... [OK]
test_has_many_count_nocache ... [OK]
test_has_many_count_with_args ... [OK]
test_has_many_get_with_args ... [OK]
test_has_one ... [OK]
test_polymorphic_get ... [OK]
test_polymorphic_set ... [OK]
test_set_belongs_to ... [OK]
test_set_habtm ... [OK]
test_set_habtm_blank ... [OK]
test_set_has_many ... [OK]
test_set_has_one ... [OK]
test_set_on_unsaved ... [OK]
twistar.tests.test_transactions
TransactionTest
test_doubleInsert ... [OK]
test_findOrCreate ... [OK]
test_success ... [OK]
twistar.tests.test_utils
UtilsTest
test_joinMultipleWheres ... [OK]
test_joinMultipleWheres_empty_arg ... [OK]
test_joinMultipleWheres_single_where ... [OK]
test_joinWheres_precedence ... [OK]
===============================================================================
[ERROR]
Traceback (most recent call last):
Failure: exceptions.TypeError: <bound method DBObjectTest.test_delete_all of <twistar.tests.test_dbobject.DBObjectTest testMethod=test_delete_all>> is a generator function and therefore will never run
twistar.tests.test_dbobject.DBObjectTest.test_delete_all
-------------------------------------------------------------------------------
Ran 56 tests in 4.381s
FAILED (errors=1, successes=55)
bburky commented
Also, I'm on a mac and sqlite3 was installed through homebrew and is used by python.
$ sqlite3 --version
3.7.11 2012-03-20 11:35:50 00bb9c9ce4f465e6ac321ced2a9d0062dc364669