e4dcfc49aa
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
17 lines
413 B
Python
17 lines
413 B
Python
"""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("{")
|