aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/api/conftest.py
diff options
context:
space:
mode:
authorzhihui wu <zhihui.wu2006+zte@gmail.com>2017-03-23 05:30:10 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-23 05:30:10 +0000
commit974c15413a468eba0583538684fb526a49121267 (patch)
treea0b5f6ff85fd83fef510d75cb3dfc0a26c285026 /tests/unit/api/conftest.py
parent0f3cd47f142d94508419bb675119bce2cf08194c (diff)
parentbef693f40ad87170b7233b9fef62f2fd8abfc8d8 (diff)
Merge "Add unit tests for List and get in API."
Diffstat (limited to 'tests/unit/api/conftest.py')
-rw-r--r--tests/unit/api/conftest.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/unit/api/conftest.py b/tests/unit/api/conftest.py
new file mode 100644
index 00000000..23a3be82
--- /dev/null
+++ b/tests/unit/api/conftest.py
@@ -0,0 +1,22 @@
+##############################################################################
+# Copyright (c) 2017 akhil.batra@research.iiit.ac.in and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+import pytest
+
+from qtip.api import __main__
+
+
+@pytest.fixture(scope="session")
+def app():
+ return __main__.get_app().app
+
+
+@pytest.fixture(scope="session")
+def app_client(app):
+ return app.test_client()