diff options
author | zhihui wu <zhihui.wu2006+zte@gmail.com> | 2017-03-23 05:30:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-23 05:30:10 +0000 |
commit | 974c15413a468eba0583538684fb526a49121267 (patch) | |
tree | a0b5f6ff85fd83fef510d75cb3dfc0a26c285026 /tests/unit/api/conftest.py | |
parent | 0f3cd47f142d94508419bb675119bce2cf08194c (diff) | |
parent | bef693f40ad87170b7233b9fef62f2fd8abfc8d8 (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.py | 22 |
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() |