def test_list_executor_options_not_found(): with pytest.raises(TVMError, match='Executor "woof" is not defined'): Executor.list_registered_options("woof")
def test_list_executor_options(executor): aot_options = Executor.list_registered_options(executor) assert "interface-api" in aot_options assert aot_options["interface-api"] == "runtime.String"