Skip to content

Commit 7bc8693

Browse files
committed
[SPT-777] Fixed AssertationError and incorrect function name
1 parent 3a2d30d commit 7bc8693

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

snet/cli/test/functional_tests/func_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ def test_channel_1_extend(self):
276276
result1 = execute(["channel", "extend-add", self.max_id, "--amount", self.amount, "-y"], self.parser,
277277
self.conf)
278278
# result2 = execute(["channel", "extend-add-for-org", self.org_id, "default_group", "--channel-id", f"{self.max_id}", "-y"], self.parser, self.conf)
279-
# print(result2)
280-
assert "event: ChannelExtend" in result1
279+
print(result1)
280+
assert "event: ChannelAddFunds" in result1
281281

282282
def test_channel_2_print_filter_sender(self):
283283
result = execute(["channel", "print-filter-sender"], self.parser, self.conf)
@@ -571,7 +571,7 @@ def test_65_metadata_set_api(self):
571571
assert metadata["service_api_source"].startswith("ipfs://")
572572

573573
@patch("builtins.input", side_effect=["auto_test", "1", "ipfs", "./", "y", "default_group", "1", ADDR, ADDR, "y", "150", ADDR, "n", "google.com", "long description", "short", "Stasy", "stasy@hotmail.com", "n", "y", "service_metadata"])
574-
def test_channel_66_metadata_init_utility(self, mock_input):
574+
def test_66_metadata_init_utility(self, mock_input):
575575
os.remove(f"./service_metadata.json")
576576
execute(["service", "metadata-init-utility"], self.parser, self.conf)
577577
assert os.path.exists(f"./service_metadata.json")

0 commit comments

Comments
 (0)