Skip to content

Commit 5d156e5

Browse files
authored
Merge pull request #57 from devchat-ai/fix/windows-module-not-found-error-#226
Fix Windows ModuleNotFoundError on unit testing workflow
2 parents 2157a82 + e8ab8c4 commit 5d156e5

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

unit_tests/main.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
from typing import List, Tuple
44

55
import click
6+
7+
sys.path.append(os.path.dirname(__file__))
8+
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "libs"))
9+
10+
from chatmark import Checkbox, Form, Step, TextEditor # noqa: E402
611
from find_reference_tests import find_reference_tests
712
from i18n import TUILanguage, get_translation
13+
from ide_services import ide_language # noqa: E402
814
from model import (
915
FuncToTest,
1016
TokenBudgetExceededException,
@@ -14,11 +20,6 @@
1420
from tools.file_util import retrieve_file_content
1521
from write_tests import write_and_print_tests
1622

17-
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "libs"))
18-
19-
from chatmark import Checkbox, Form, Step, TextEditor # noqa: E402
20-
from ide_services import ide_language # noqa: E402
21-
2223

2324
class UnitTestsWorkflow:
2425
def __init__(

0 commit comments

Comments
 (0)