Skip to content

Commit

Permalink
refactor: py example module
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaZotov committed Feb 27, 2024
1 parent 4886793 commit 7c360d9
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from sc_kpm import ScAgentClassic, ScResult
from sc_kpm.utils import (
create_link,
get_system_idtf,
)
from sc_kpm.utils.action_utils import (
create_action_answer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

from sc_kpm import ScModule
from .ExampleAgent import ExampleAgent
from .example_agent import ExampleAgent


class ExampleModule(ScModule):
Expand Down
4 changes: 1 addition & 3 deletions platform-dependent-components/problem-solver/py/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

import argparse
from sc_kpm import ScServer
from modules.exampleModule.ExampleModule import ExampleModule

from pathlib import Path
from modules.example_module.example_module import ExampleModule

SC_SERVER_PROTOCOL = "protocol"
SC_SERVER_HOST = "host"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

from sc_client.client import create_elements_by_scs
from sc_kpm import ScServer
from pathlib import Path
from tests import TESTS_DIR

logging.basicConfig(
level=logging.INFO, format="%(asctime)s | %(name)s | %(message)s", datefmt="[%d-%b-%y %H:%M:%S]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from pathlib import Path

from modules.exampleModule.ExampleModule import ExampleModule
from modules.example_module.example_module import ExampleModule
from sc_kpm.utils.action_utils import execute_agent
from tests.base_testcase import BaseTestCase

Expand All @@ -19,7 +19,7 @@ class ExampleAgentTestCase(BaseTestCase):
@classmethod
def setUpClass(cls) -> None:
cls.tests_structures_dir_path = str(
Path(Path(__file__).resolve().parent, "test_structures"))
Path(Path(__file__).resolve().parent, "test-structures"))

def setUp(self):
super().setUp()
Expand Down

0 comments on commit 7c360d9

Please sign in to comment.