mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 03:22:22 -05:00
cec4ed573d
Switched out sqlite3 libs in favour of SQLAlchemy v0.9, will gradually migrate dialects and scheme to be fully SQLAlchemy compliant for using there ORM with sessions instead of direct. Fixed getEpisode function to stop making unrequired scene number conversions on already converted data thats available now from cache.
31 lines
692 B
Python
31 lines
692 B
Python
"""Regression test suite for CherryPy.
|
|
|
|
Run 'nosetests -s test/' to exercise all tests.
|
|
|
|
The '-s' flag instructs nose to output stdout messages, wihch is crucial to
|
|
the 'interactive' mode of webtest.py. If you run these tests without the '-s'
|
|
flag, don't be surprised if the test seems to hang: it's waiting for your
|
|
interactive input.
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
|
|
|
|
def newexit():
|
|
os._exit(1)
|
|
|
|
|
|
def setup():
|
|
# We want to monkey patch sys.exit so that we can get some
|
|
# information about where exit is being called.
|
|
newexit._old = sys.exit
|
|
sys.exit = newexit
|
|
|
|
|
|
def teardown():
|
|
try:
|
|
sys.exit = sys.exit._old
|
|
except AttributeError:
|
|
sys.exit = sys._exit
|