Skip to content

Commit

Permalink
python -m unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
hemnstill committed Feb 26, 2024
1 parent 32e3ffd commit 98b9720
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .tests/ci-test-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ set -e

"$dp0/test-tools.sh" || exit 1

python -m unittests || exit 1

"$dp0/test-run.sh" -- testInternalCreate || exit 1
8 changes: 7 additions & 1 deletion _AutoinstallCreator/test_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@
import pathlib
import shutil
import subprocess
import sys
import unittest

from _AutoinstallCreator import io_tools

_self_path: str = os.path.dirname(os.path.realpath(__file__))

_self_tmp_path: str = os.path.join(_self_path, '.tmp')
_root_path: str = os.path.dirname(_self_path)
_tools_path: str = os.path.join(_root_path, '.tools')
busybox_exe_path: str = os.path.join(_tools_path, 'busybox.exe')

if _root_path not in sys.path:
sys.path.append(_root_path)

from _AutoinstallCreator import io_tools


def get_version_from_stdout(b_stdout: bytes) -> str:
for b_line in b_stdout.splitlines():
Expand Down

0 comments on commit 98b9720

Please sign in to comment.