Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.608 kB
import unittest
from flaskext.testing import TestCase, Twill
from website import app, db
# Base setup to run tests
class TestBase(TestCase):
def create_app(self):
app.config['TESTING'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite://"
return app
def setUp(self):
db.create_all()
def tearDown(self):
db.session.remove()
db.drop_all()
class TestWorkflow(TestBase):
def test_new_listing_with_twill(self):
with Twill(self.app, port=5000) as t:
t.browser.go(t.url('/'))
if __name__=='__main__':
unittest.main()
Jump to Line
Something went wrong with that request. Please try again.