chore: import upstream snapshot with attribution
Tests / Import Check (Python 3.13) (push) Has been cancelled
Tests / Import Check (Python 3.14) (push) Has been cancelled
Tests / Python Tests (Python 3.11) (push) Has been cancelled
Tests / Python Tests (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.14) (push) Has been cancelled
Tests / Test Summary (push) Has been cancelled
Tests / Lint and Format (push) Has been cancelled
Tests / Web Node Tests (push) Has been cancelled
Tests / Import Check (Python 3.11) (push) Has been cancelled
Tests / Import Check (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.13) (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:00:43 +08:00
commit e4dcfc49aa
1668 changed files with 324490 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
"""Unit tests for shared CLI helpers."""
from __future__ import annotations
import pytest
from deeptutor_cli.common import parse_json_object
def test_parse_json_object_whitespace_is_empty_dict() -> None:
assert parse_json_object(" ") == {}
def test_parse_json_object_invalid_json_still_errors() -> None:
with pytest.raises(ValueError, match="Invalid JSON config"):
parse_json_object("{")