
Story: 2008529 Task: 41923 Signed-off-by: Bin Yang <bin.yang@windriver.com> Change-Id: Icd665ffff700f1d915233ee3630ffd8ec5c5d923
29 lines
609 B
Python
29 lines
609 B
Python
#
|
|
# Copyright (c) 2021 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
import os
|
|
from unittest import TestCase
|
|
from pecan import set_config
|
|
from pecan.testing import load_test_app
|
|
|
|
__all__ = ['FunctionalTest']
|
|
|
|
|
|
class FunctionalTest(TestCase):
|
|
"""
|
|
Used for functional tests where you need to test your
|
|
literal application and its integration with the framework.
|
|
"""
|
|
|
|
def setUp(self):
|
|
self.app = load_test_app(os.path.join(
|
|
os.path.dirname(__file__),
|
|
'config.py'
|
|
))
|
|
|
|
def tearDown(self):
|
|
set_config({}, overwrite=True)
|