Commit a6850c96 authored by Tomáš Zemanovič's avatar Tomáš Zemanovič Committed by Raphaël Cauderlier

Tests/Python: Update to new 'call' syntax

parent 23136d14
from typing import List
import shutil
import datetime import datetime
import json
import os import os
import shutil
import subprocess import subprocess
import tempfile
import json
import sys import sys
import tempfile
from typing import List
from . import client_output from . import client_output
...@@ -305,10 +306,10 @@ class Client: ...@@ -305,10 +306,10 @@ class Client:
return client_output.TransferResult(res) return client_output.TransferResult(res)
def call(self, def call(self,
account1: str, source: str,
account2: str, destination: str,
args: List[str] = None) -> client_output.TransferResult: args: List[str] = None) -> client_output.TransferResult:
cmd = ['call', 'from', account1, 'to', account2] cmd = ['call', destination, 'from', source]
if args is None: if args is None:
args = [] args = []
cmd += args cmd += args
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment