Update tests and .bzrignore to use tests.sqlite instead of glance.sqlite.

This commit is contained in:
Dan Prince 2011-04-20 14:08:04 -04:00
parent 47af47787b
commit 5e35359d45
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
*.pyc
glance.egg-info
glance.sqlite
tests.sqlite
*.glance-venv
dist/
ChangeLog

View File

@ -39,7 +39,7 @@ done
function run_tests {
# Just run the test suites in current environment
${wrapper} rm -f glance.sqlite
${wrapper} rm -f tests.sqlite
${wrapper} $NOSETESTS 2> run_tests.err.log
}

View File

@ -53,7 +53,7 @@ def runs_sql(func):
orig_sql_connection = test_obj.sql_connection
try:
if orig_sql_connection.startswith('sqlite'):
test_obj.sql_connection = "sqlite:///glance.sqlite"
test_obj.sql_connection = "sqlite:///tests.sqlite"
func(*a, **kwargs)
finally:
test_obj.sql_connection = orig_sql_connection