From 19cd88ef907a3a9248d58a987070f18749ff874b Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Mon, 26 Aug 2024 15:53:13 +0100 Subject: test/wasm-wc: Rename test_wasm_component.py Rename this to 'test_wasm-wasi-component.py' to match the language module name and the name as used in the CI. Signed-off-by: Andrew Clayton --- test/test_wasm-wasi-component.py | 18 ++++++++++++++++++ test/test_wasm_component.py | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 test/test_wasm-wasi-component.py delete mode 100644 test/test_wasm_component.py (limited to 'test') diff --git a/test/test_wasm-wasi-component.py b/test/test_wasm-wasi-component.py new file mode 100644 index 00000000..6d3bc485 --- /dev/null +++ b/test/test_wasm-wasi-component.py @@ -0,0 +1,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' diff --git a/test/test_wasm_component.py b/test/test_wasm_component.py deleted file mode 100644 index 6d3bc485..00000000 --- a/test/test_wasm_component.py +++ /dev/null @@ -1,18 +0,0 @@ -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' -- cgit