/
UCS
/
pybind11
Обзор
Документация
Войти
/
UCS
/
pybind11
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
tests/test_const_name.py
29 строк
589 B
Ralf W. Grosse-Kunstleve
Python 2 removal part 1: tests (C++ code is intentionally ~untouched) (#3688)
11 фев 2022, 05:28
Не верифицирован
11 фев 2022, 05:28
6493f49
Код
Авторство
О чём код?
import pytest from pybind11_tests import const_name as m @pytest.mark.parametrize("func", (m.const_name_tests, m.underscore_tests)) @pytest.mark.parametrize( "selector, expected", enumerate( ( "", "A", "Bd", "Cef", "%", "%", "T1", "U2", "D1", "E2", "KeepAtEnd", ) ), ) def test_const_name(func, selector, expected): if isinstance(func, str): pytest.skip(func) text = func(selector) assert text == expected