mirror of
https://github.com/chatmail/core.git
synced 2026-04-23 00:16:34 +03:00
test: test_openrpc_command_line: Check that deltachat-rpc-server exists with 0
This commit is contained in:
@@ -363,7 +363,7 @@ async def test_import_export(acfactory, tmp_path) -> None:
|
||||
|
||||
def test_openrpc_command_line() -> None:
|
||||
"""Test that "deltachat-rpc-server --openrpc" command returns an OpenRPC specification."""
|
||||
out = subprocess.run(["deltachat-rpc-server", "--openrpc"], capture_output=True).stdout
|
||||
out = subprocess.run(["deltachat-rpc-server", "--openrpc"], capture_output=True, check=True).stdout
|
||||
openrpc = json.loads(out)
|
||||
assert "openrpc" in openrpc
|
||||
assert "methods" in openrpc
|
||||
|
||||
Reference in New Issue
Block a user