test_const_name.py
Go to the documentation of this file.
1 from __future__ import annotations
2 
3 import pytest
4 
5 from pybind11_tests import const_name as m
6 
7 
8 @pytest.mark.parametrize("func", [m.const_name_tests, m.underscore_tests])
9 @pytest.mark.parametrize(
10  ("selector", "expected"),
11  enumerate(
12  (
13  "",
14  "A",
15  "Bd",
16  "Cef",
17  "%",
18  "%",
19  "T1",
20  "U2",
21  "D1",
22  "E2",
23  "KeepAtEnd",
24  )
25  ),
26 )
27 def test_const_name(func, selector, expected):
28  if isinstance(func, str):
29  pytest.skip(func)
30  text = func(selector)
31  assert text == expected
isinstance
bool isinstance(handle obj)
Definition: pytypes.h:842
test_const_name.test_const_name
def test_const_name(func, selector, expected)
Definition: test_const_name.py:27
func
Definition: benchGeometry.cpp:23


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:15:58