tests: packaging tweaks
The standalone dtlib and edtlib modules must be imported from 'devicetree'. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
3cb1e6816d
commit
0c9f56bc04
2 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ import tempfile
|
|||
|
||||
import pytest
|
||||
|
||||
import dtlib
|
||||
from devicetree import dtlib
|
||||
|
||||
# Test suite for dtlib.py.
|
||||
#
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from pathlib import Path
|
|||
|
||||
import pytest
|
||||
|
||||
import edtlib
|
||||
from devicetree import edtlib
|
||||
|
||||
# Test suite for edtlib.py.
|
||||
#
|
||||
|
|
@ -40,7 +40,7 @@ def test_warnings(caplog):
|
|||
f"compatible 'enums' in binding '{enums_hpath}' has non-tokenizable enum for property 'string-enum': 'foo bar', 'foo_bar'",
|
||||
f"compatible 'enums' in binding '{enums_hpath}' has enum for property 'tokenizable-lower-enum' that is only tokenizable in lowercase: 'bar', 'BAR'",
|
||||
]
|
||||
assert caplog.record_tuples == [('edtlib', WARNING, warning_message)
|
||||
assert caplog.record_tuples == [('devicetree.edtlib', WARNING, warning_message)
|
||||
for warning_message in expected_warnings]
|
||||
|
||||
def test_interrupts():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue