Tests for Python wrapper based on Pybind11.
Definition at line 26 of file test_pybind_wrapper.py.
def test_pybind_wrapper.TestWrap.compare_and_diff |
( |
|
self, |
|
|
|
file, |
|
|
|
actual |
|
) |
| |
Compute the comparison between the expected and actual file,
and assert if diff is zero.
Definition at line 68 of file test_pybind_wrapper.py.
def test_pybind_wrapper.TestWrap.test_class |
( |
|
self | ) |
|
def test_pybind_wrapper.TestWrap.test_enum |
( |
|
self | ) |
|
def test_pybind_wrapper.TestWrap.test_functions |
( |
|
self | ) |
|
def test_pybind_wrapper.TestWrap.test_geometry |
( |
|
self | ) |
|
Check generation of python geometry wrapper.
python3 ../pybind_wrapper.py --src geometry.h --module_name
geometry_py --out output/geometry_py.cc
Definition at line 80 of file test_pybind_wrapper.py.
def test_pybind_wrapper.TestWrap.test_inheritance |
( |
|
self | ) |
|
def test_pybind_wrapper.TestWrap.test_namespaces |
( |
|
self | ) |
|
Check generation of python wrapper for full namespace definition.
python3 ../pybind_wrapper.py --src namespaces.i --module_name
namespaces_py --out output/namespaces_py.cpp
Definition at line 123 of file test_pybind_wrapper.py.
def test_pybind_wrapper.TestWrap.test_operator_overload |
( |
|
self | ) |
|
def test_pybind_wrapper.TestWrap.test_special_cases |
( |
|
self | ) |
|
def test_pybind_wrapper.TestWrap.wrap_content |
( |
|
self, |
|
|
|
content, |
|
|
|
module_name, |
|
|
|
output_dir |
|
) |
| |
test_pybind_wrapper.TestWrap.exist_ok |
|
static |
test_pybind_wrapper.TestWrap.INTERFACE_DIR = osp.join(TEST_DIR, 'fixtures') |
|
static |
test_pybind_wrapper.TestWrap.PYTHON_ACTUAL_DIR = osp.join(TEST_DIR, "actual", "python") |
|
static |
test_pybind_wrapper.TestWrap.PYTHON_TEST_DIR = osp.join(TEST_DIR, 'expected', 'python') |
|
static |
test_pybind_wrapper.TestWrap.TEST_DIR = osp.dirname(osp.realpath(__file__)) |
|
static |
The documentation for this class was generated from the following file: