def test_list_runtime_options_not_found(): with pytest.raises(TVMError, match='Runtime "woof" is not defined'): Runtime.list_runtime_options("woof")
def test_list_runtime_options(runtime): aot_options = Runtime.list_runtime_options(runtime) assert "system-lib" in aot_options assert aot_options["system-lib"] == "IntImm"