Skip to content

Commit

Permalink
[SPT-777] fixed network create command
Browse files Browse the repository at this point in the history
  • Loading branch information
MorozovMisha committed Feb 5, 2025
1 parent b3ace02 commit 7886224
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions snet/cli/test/functional_tests/func_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import importlib.util
import math
import re
import time

from snet.cli.commands.commands import BlockchainCommand

Expand Down Expand Up @@ -75,8 +76,11 @@ def test_3_set_network_sepolia(self):
result = execute(["session"], self.parser, self.conf)
assert "network: sepolia" in result

def test_4_network_create(self):
execute(["network", "create", self.new_network, INFURA], self.parser, self.conf)
def test_41_network_create(self):
result = execute(["network", "create", self.new_network, INFURA], self.parser, self.conf)
assert f"add network with name='{self.new_network}'" in result

def test_42_network_create_confirmation(self):
execute(["network", self.new_network], self.parser, self.conf)
result = execute(["session"], self.parser, self.conf)
execute(["network", "sepolia"], self.parser, self.conf)
Expand Down Expand Up @@ -252,7 +256,7 @@ def setUp(self):
self.group = "default_group"
data = execute(["channel", "print-filter-sender"], self.parser, self.conf)
lines = data.split("\n")

self.max_id = ""
for line in lines:
parts = line.split()
if len(parts) >= 6 and parts[0].isdigit() and parts[-1].isdigit():
Expand Down

0 comments on commit 7886224

Please sign in to comment.