Skip to content

Commit f794d04

Browse files
committed
Add test create
1 parent 5a68958 commit f794d04

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

src/soroban/models.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ class NetworkConfig(BaseSettings):
7474

7575
model_config = SettingsConfigDict(env_file="network.toml")
7676

77+
@model_validator(mode="after")
78+
def load_urls(self) -> "NetworkConfig":
79+
# or use the Annotated construction
80+
self.horizon_url = str(self.horizon_url)
81+
self.rpc_url = str(self.rpc_url)
82+
return self
83+
7784
@classmethod
7885
def from_network(cls, network: str | pathlib.Path | None = None) -> "NetworkConfig":
7986
if network is None:

tests/test_create.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import pytest
2+
3+
import soroban
4+
5+
6+
@pytest.mark.skip
7+
def test_create_account():
8+
source_account = "SDEUQZ7PMHT7VDP3TYZMBKUVES3W6CTXT5L2ZR5NROWQJIDE4QFUXW6Q"
9+
10+
soroban.create_account(name="bob", source_account=source_account)
11+
12+
13+
@pytest.mark.skip
14+
def test_create_asset():
15+
source_account = "SDEUQZ7PMHT7VDP3TYZMBKUVES3W6CTXT5L2ZR5NROWQJIDE4QFUXW6Q"
16+
17+
soroban.create_account(name="BOB", source_account=source_account)

0 commit comments

Comments
 (0)