summaryrefslogblamecommitdiffhomepage
path: root/test/test_wasm-wasi-component.py
blob: 6d3bc485a8884e3c99d6532d564a5148a64af0c9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                          
import pytest
from unit.applications.lang.wasm_component import ApplicationWasmComponent

prerequisites = {
    'modules': {'wasm-wasi-component': 'any'},
    'features': {'cargo_component': True},
}

client = ApplicationWasmComponent()


def test_wasm_component():
    client.load('hello_world')

    req = client.get()

    assert client.get()['status'] == 200
    assert req['body'] == 'Hello'