aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/api/conftest.py
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-03-28 01:45:00 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-28 01:45:00 +0000
commit4fda4a5819fda210ed824c504d4bed1751f8f51a (patch)
tree892ca5677b8a0989a8a87ee0db99d19da11cf001 /tests/unit/api/conftest.py
parent686c7023613491a99c8e2ada758edb720655a6e6 (diff)
parent7d69a1eae658fae6c7437e0a8316312cb625acb5 (diff)
Merge "Add unit tests for List and get in API." into stable/danube
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()