import pytest from ..helpers import Suite @pytest.mark.integration_test def test_imported(): code_py = """ @imported def helper(mul: i32) -> i32: pass @exported def testEntry() -> i32: return helper(2) """ def helper(mul: int) -> int: return 4238 * mul result = Suite(code_py).run_code( runtime='wasmer', imports={ 'helper': helper, } ) assert 8476 == result.returned_value