Rtos API example

Embed: (wiki syntax)

« Back to documentation index

BuildApiTests Class Reference

BuildApiTests Class Reference

Public Member Functions

def setUp
def tearDown
def test_prepare_toolchain_app_config
def test_prepare_toolchain_no_app_config
def test_build_project_app_config
def test_build_project_no_app_config
def test_build_library_app_config
def test_build_library_no_app_config

Detailed Description

Test cases for Build Api

Definition at line 31 of file build_api_test.py.


Member Function Documentation

def setUp (   self )
Called before each test case

:return:

Definition at line 36 of file build_api_test.py.

def tearDown (   self )
Called after each test case

:return:

Definition at line 47 of file build_api_test.py.

def test_build_library_app_config (   self,
  mock_prepare_toolchain,
  mock_exists,
  _,
  __ 
)
Test that build_library uses app_config correctly

:param mock_prepare_toolchain: mock of function prepare_toolchain
:param mock_exists: mock of function os.path.exists
:param _: mock of function mkdir (not tested)
:param __: mock of function scan_resources (not tested)
:return:

Definition at line 179 of file build_api_test.py.

def test_build_library_no_app_config (   self,
  mock_prepare_toolchain,
  mock_exists,
  _,
  __ 
)
Test that build_library correctly deals with no app_config

:param mock_prepare_toolchain: mock of function prepare_toolchain
:param mock_exists: mock of function os.path.exists
:param _: mock of function mkdir (not tested)
:param __: mock of function scan_resources (not tested)
:return:

Definition at line 205 of file build_api_test.py.

def test_build_project_app_config (   self,
  mock_prepare_toolchain,
  mock_exists,
  _,
  __ 
)
Test that build_project uses app_config correctly

:param mock_prepare_toolchain: mock of function prepare_toolchain
:param mock_exists: mock of function os.path.exists
:param _: mock of function mkdir (not tested)
:param __: mock of function scan_resources (not tested)
:return:

Definition at line 121 of file build_api_test.py.

def test_build_project_no_app_config (   self,
  mock_prepare_toolchain,
  mock_exists,
  _,
  __ 
)
Test that build_project correctly deals with no app_config

:param mock_prepare_toolchain: mock of function prepare_toolchain
:param mock_exists: mock of function os.path.exists
:param _: mock of function mkdir (not tested)
:param __: mock of function scan_resources (not tested)
:return:

Definition at line 150 of file build_api_test.py.

def test_prepare_toolchain_app_config (   self,
  mock_config_init 
)
Test that prepare_toolchain uses app_config correctly

:param mock_config_init: mock of Config __init__
:return:

Definition at line 80 of file build_api_test.py.

def test_prepare_toolchain_no_app_config (   self,
  mock_config_init 
)
Test that prepare_toolchain correctly deals with no app_config

:param mock_config_init: mock of Config __init__
:return:

Definition at line 100 of file build_api_test.py.