Skip to content

Commit 0fd8588

Browse files
committed
fix(tests): resolve GLiNER dependency mocking for CI environments
- Rewrite GLiNER test suite with proper session-scoped mocking - Add sys.modules mock for gliner to prevent import errors - Fix CLI test assertion to match new output format with engine name - Address 18 test failures related to missing GLiNER dependencies
1 parent 1fd436e commit 0fd8588

File tree

2 files changed

+197
-168
lines changed

2 files changed

+197
-168
lines changed

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_show_config(mock_get_config):
112112
def test_download_model(mock_download_model):
113113
result = runner.invoke(app, ["download-model", "en_core_web_sm"])
114114
assert result.exit_code == 0
115-
assert "Model en_core_web_sm downloaded" in result.stdout
115+
assert "SpaCy model en_core_web_sm downloaded successfully" in result.stdout
116116
mock_download_model.assert_called_once_with("en_core_web_sm")
117117

118118

0 commit comments

Comments
 (0)