veekun_pokedex/pokedex/tests/__init__.py

16 lines
325 B
Python
Raw Normal View History

2009-08-24 03:43:39 +00:00
import unittest
from pokedex.lookup import open_index
from pokedex.db import connect
from pokedex.db.load import load
def setup():
# Reload data just in case
session = connect()
load(session, verbose=False, drop_tables=True)
open_index(session=session, recreate=True)
def teardown():
print "teardown"