Skip to content

Commit

Permalink
[SPT-777] Fixed input data for test
Browse files Browse the repository at this point in the history
  • Loading branch information
MorozovMisha committed Feb 4, 2025
1 parent cf8ccc1 commit c6bf9ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions snet/cli/test/functional_tests/func_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import argcomplete
import unittest
import unittest.mock as mock
from unittest.mock import patch
import shutil
import os
import importlib.util
Expand Down Expand Up @@ -457,7 +458,8 @@ def test_61_change_org_metadata(self):
result = execute(["organization", "print-metadata", self.org_id], self.parser, self.conf)
assert self.new_description in result

def test_62_change_service_metadata(self):
@patch("builtins.input", side_effect=["1", "2"])
def test_62_change_service_metadata(self, mock_input):
execute(["service", "metadata-remove-group", self.group_name], self.parser, self.conf)
execute(["service", "metadata-add-group", self.group_name], self.parser, self.conf)
execute(["organization", "update-group", self.group_name], self.parser, self.conf)
Expand Down Expand Up @@ -497,7 +499,7 @@ def test_63_tags(self):
print(execute(["service", "print-tags", self.org_id, self.service_id], self.parser, self.conf))
result=execute(["service", "print-tags", self.org_id, self.service_id], self.parser, self.conf)
print(result)
assert self.tags in result
assert self.tags[0] in result

def test_64_get_api_metadata(self):
os.remove(f"./ExampleService.proto")
Expand Down

0 comments on commit c6bf9ce

Please sign in to comment.