siso: rewrite the entire siso test to pytest.

With this tests will be easier to read and support.

Also have improved parameterized tests.

The reason why pytest was picked is because as my knowledge goes this is the most up to date and supported unit test framework in Python. The current parameterized tests state is primitive, and the parameterized library was last updated 2 years ago. pytest will help us adopt best practices that later perhaps we could spread to other unit tests in depot_tools.

Bug: 459690822
Change-Id: I67d16b56ff3c4dbd260ea0b07354ef766a6a6964
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7246550
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Alex Ovsienko <ovsienko@google.com>
Reviewed-by: Junji Watanabe <jwata@google.com>
This commit is contained in:
Alex Ovsienko
2025-12-17 16:05:19 -08:00
committed by LUCI CQ
parent 7b56ac47e6
commit 02f1c0f8b7
2 changed files with 967 additions and 1094 deletions

View File

@@ -82,6 +82,41 @@ wheel: <
version: "version:0.8.1"
>
# Used by:
# tests/siso_test.py
wheel: <
name: "infra/python/wheels/pytest-py3"
version: "version:9.0.2"
>
wheel: <
name: "infra/python/wheels/pytest-mock-py3"
version: "version:3.10.0"
>
wheel: <
name: "infra/python/wheels/pytest-cov-py2_py3"
version: "version:6.2.1"
>
wheel: <
name: "infra/python/wheels/iniconfig-py3"
version: "version:2.1.0"
>
wheel: <
name: "infra/python/wheels/packaging-py3"
version: "version:25.0"
>
wheel: <
name: "infra/python/wheels/pluggy-py3"
version: "version:1.6.0"
>
wheel: <
name: "infra/python/wheels/pygments-py3"
version: "version:2.19.2"
>
wheel: <
name: "infra/python/wheels/colorama-py2_py3"
version: "version:0.4.6"
>
# Used by:
# web-tests PRESUBMIT.py
wheel: <

File diff suppressed because it is too large Load Diff