Skip to content

Commit 98aa371

Browse files
committed
Add test for repr of AvailableResult using model.metadata.result_info.available_results list
1 parent f07c668 commit 98aa371

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/test_resultinfo.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,14 @@ def test_get_result_resultinfo_from_index(model):
7272

7373

7474
def test_print_result_info(model):
75-
print(model.metadata.result_info)
75+
str(model.metadata.result_info)
76+
77+
78+
def test_repr_available_results_list(model):
79+
ar = model.metadata.result_info.available_results
80+
assert type(ar) is list
81+
assert all([type(r) is dpf.core.result_info.available_result.AvailableResult for r in ar])
82+
assert dpf.core.result_info.available_result.AvailableResult.__name__ in str(ar)
7683

7784

7885
@pytest.mark.skipif(platform.system() == "Linux", reason="CFF not available for Linux InProcess.")

0 commit comments

Comments
 (0)