Skip to content

Commit 80b3520

Browse files
committed
Fix confidential tests
1 parent 1bbce23 commit 80b3520

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

tests/unit/conftest.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212

1313
import aleph.sdk.chains.ethereum as ethereum
1414
import aleph.sdk.chains.sol as solana
15-
import aleph.sdk.chains.substrate as substrate
16-
import aleph.sdk.chains.tezos as tezos
15+
16+
# import aleph.sdk.chains.substrate as substrate
17+
# import aleph.sdk.chains.tezos as tezos
1718
from aleph.sdk import AlephHttpClient, AuthenticatedAlephHttpClient
1819
from aleph.sdk.chains.common import get_fallback_private_key
1920
from aleph.sdk.types import Account
@@ -40,14 +41,14 @@ def solana_account() -> solana.SOLAccount:
4041

4142

4243
@pytest.fixture
43-
def tezos_account() -> tezos.TezosAccount:
44+
def tezos_account() -> "tezos.TezosAccount":
4445
with NamedTemporaryFile(delete=False) as private_key_file:
4546
private_key_file.close()
4647
yield tezos.get_fallback_account(path=Path(private_key_file.name))
4748

4849

4950
@pytest.fixture
50-
def substrate_account() -> substrate.DOTAccount:
51+
def substrate_account() -> "substrate.DOTAccount":
5152
with NamedTemporaryFile(delete=False) as private_key_file:
5253
private_key_file.close()
5354
yield substrate.get_fallback_account(path=Path(private_key_file.name))

tests/unit/test_vm_confidential_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ async def test_confidential_initialize_instance():
8080
"session": tmp_file_bytes,
8181
"godh": tmp_file_bytes,
8282
},
83+
json=None,
8384
headers=headers,
8485
)
8586
await vm_client.session.close()
@@ -173,7 +174,7 @@ async def test_confidential_inject_secret_instance():
173174
m.assert_called_once_with(
174175
url,
175176
method="POST",
176-
data={
177+
json={
177178
"secret": test_secret,
178179
"packet_header": packet_header,
179180
},

0 commit comments

Comments
 (0)