Open GoogleCodeExporter opened 8 years ago
I have a similar problem. I am able to use fixtures when doing a management.py
flush, by putting them in initial_data. But when I try to load the same
fixtures in a
django TestCase with a line like the following:
class GameTestCase(TestCase):
fixtures = ['initial_data']
I get the following exception after running manage.py test
DEBUG:root:Destroyed test datastore
DEBUG:root:Configured API stubs for the test datastore
.......Traceback (most recent call last):
File "C:\Documents and Settings\peter\workspace\gwgeclipse\gwg\manage.py", line 30,
in <module>
execute_manager(settings)
File "C:\Program
Files\Google\google_appengine\lib\django\django\core\management.py", line 1672,
in
execute_
manager
execute_from_command_line(action_mapping, argv)
File "C:\Program
Files\Google\google_appengine\lib\django\django\core\management.py", line 1586,
in
execute_
from_command_line
action_mapping[action](args[1:], int(options.verbosity))
File "C:\Program
Files\Google\google_appengine\lib\django\django\core\management.py", line 1325,
in test
failures = test_runner(app_list, verbosity)
File "C:\Program Files\Google\google_appengine\lib\django\django\test\simple.py",
line 82, in run_tests
result = unittest.TextTestRunner(verbosity=verbosity).run(suite)
File "C:\Python25\lib\unittest.py", line 696, in run
test(result)
File "C:\Python25\lib\unittest.py", line 428, in __call__
return self.run(*args, **kwds)
File "C:\Python25\lib\unittest.py", line 424, in run
test(result)
File "C:\Python25\lib\unittest.py", line 428, in __call__
return self.run(*args, **kwds)
File "C:\Python25\lib\unittest.py", line 424, in run
test(result)
File "C:\Python25\lib\unittest.py", line 428, in __call__
return self.run(*args, **kwds)
File "C:\Python25\lib\unittest.py", line 424, in run
test(result)
File "C:\Python25\lib\unittest.py", line 428, in __call__
return self.run(*args, **kwds)
File "C:\Python25\lib\unittest.py", line 424, in run
test(result)
File "C:\Python25\lib\unittest.py", line 281, in __call__
return self.run(*args, **kwds)
File "C:\Program
Files\Google\google_appengine\lib\django\django\test\testcases.py", line 49, in
run
self.install_fixtures()
File "C:\Program
Files\Google\google_appengine\lib\django\django\test\testcases.py", line 39, in
install_fix
tures
management.flush(verbosity=0, interactive=False)
File "C:\Program
Files\Google\google_appengine\lib\django\django\core\management.py", line 713,
in flush
sql_list = get_sql_flush()
File "C:\Program
Files\Google\google_appengine\lib\django\django\core\management.py", line 359,
in
get_sql_f
lush
statements = backend.get_sql_flush(style, _get_table_list(), _get_sequence_list())
AttributeError: 'module' object has no attribute 'get_sql_flush'
Original comment by peterrec...@gmail.com
on 11 Sep 2008 at 5:12
Original issue reported on code.google.com by
crippled...@gmail.com
on 28 Jul 2008 at 7:44