tests: preload api files 71/39871/11
authorMaxime Peim <mpeim@cisco.com>
Tue, 14 Nov 2023 14:26:41 +0000 (15:26 +0100)
committerDave Wallace <dwallacelf@gmail.com>
Thu, 18 Jan 2024 20:14:54 +0000 (20:14 +0000)
commit77caeb1b193404e76beb27a1aa81321e8eb1cf1f
treebffb3aa51d53f96ad45a55d337f262260c191461
parent87241fefd94423cdc50cfe6b1b54fec955b5f0d3
tests: preload api files

When sanity test is not done, API files are not loaded until the
first test case is run. Hence, it is not possible to use enums, etc.
outside of a test class.
By preloading API files before running any tests, it prevents its
issue.

Type: fix
Change-Id: I8730150374e6c5f8d6933ec037811372ac2a8da0
Signed-off-by: Maxime Peim <mpeim@cisco.com>
src/vpp-api/python/vpp_papi/tests/test_vpp_papi.py
src/vpp-api/python/vpp_papi/vpp_papi.py
test/Makefile
test/config.py
test/run_tests.py
test/vpp_papi_provider.py