deprecate configbuilder & move dependencies to opt extras #582
GitHub Actions / Unit Test Results
failed
Dec 5, 2023 in 0s
1 fail, 1 skipped, 335 pass in 20s
Annotations
Check warning on line 0 in tests.test_config_builder
github-actions / Unit Test Results
test_deprecated_warning (tests.test_config_builder) failed
pytest-junit-report/report.xml
Raw output
def test_deprecated_warning():
with pytest.warns(None) as record:
cb = ConfigBuilder()
cont = Controller("con1")
cb.add(cont)
elm = Element("elm", analog_input_ports=[cont.analog_output(1)]
)
cb.add(elm)
cb.build()
> assert len(record.list) == 1
E assert 2 == 1
E + where 2 = len([<warnings.WarningMessage object at 0x7faa65dca320>, <warnings.WarningMessage object at 0x7faa65d80d00>])
E + where [<warnings.WarningMessage object at 0x7faa65dca320>, <warnings.WarningMessage object at 0x7faa65d80d00>] = WarningsChecker(record=True).list
tests/test_config_builder.py:380: AssertionError
Loading