Commits

Ronny Pfannschmidt  committed 0abe1b5

first test

  • Participants
  • Parent commits 06667aa
  • Branches flask-port

Comments (0)

Files changed (3)

File testing/__init__.py

Empty file added.

File testing/conftest.py

+def app():
+    from lodgeit.application import app
+    return app
+
+
+def pytest_funcarg__app(request):
+    return app()
+
+def pytest_funcarg__client(request):
+    return app().test_client()
+
+def pytest_sessionstart():
+    app().debug = True
+    app().config['SECRET_KEY'] = '123'

File testing/test_basic.py

+
+
+def test_yay_i_can_paste(app, client):
+    app.debug=True
+    page = client.get('/')
+    res = client.post('/', data='code=print%201&langauge=python')
+    print res
+    print res.data
+    assert 0