Skip to content

Commit b51a19f

Browse files
Add tests checking arg validation by intel_device_info
1 parent c274728 commit b51a19f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dpctl/tests/test_utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ def test_intel_device_info():
151151
assert test, err_msg
152152

153153

154+
def test_intel_device_info_validation():
155+
invalid_device = dict()
156+
with pytest.raises(TypeError):
157+
dpctl.utils.intel_device_info(invalid_device)
158+
159+
154160
def test_order_manager():
155161
try:
156162
q = dpctl.SyclQueue()

0 commit comments

Comments
 (0)