Skip to content

fix(tests): set DEEPSEEK_API_KEY placeholder in conftest credential i… - #197

Open
raymondginger2018-sudo wants to merge 2 commits into
HKUDS:mainfrom
raymondginger2018-sudo:pr/deepcode-testfix
Open

fix(tests): set DEEPSEEK_API_KEY placeholder in conftest credential i…#197
raymondginger2018-sudo wants to merge 2 commits into
HKUDS:mainfrom
raymondginger2018-sudo:pr/deepcode-testfix

Conversation

@raymondginger2018-sudo

Copy link
Copy Markdown
Contributor

Summary

Fix pre-existing CI test failures: tests/conftest.py strips all credential env vars for hygiene, but the project deepcode_config.json references ${DEEPSEEK_API_KEY}. Loading it (CodeIndexer.__init__ -> get_default_models) raised ValueError when the var was absent.

Change

Restore a placeholder key (test-placeholder-key) after stripping so config-driven construction stays side-effect free while other credentials remain removed.

Fixes pre-existing failures: test_code_indexer_output.py (8) + test_code_indexer_concurrent.py (1).

…solation

tests/conftest.py strips all credential env vars for hygiene, but the
project deepcode_config.json references ${DEEPSEEK_API_KEY}; loading it
(CodeIndexer.__init__ -> get_default_models) raised ValueError when the
var was absent. Restore a placeholder key after stripping so config-driven
construction stays side-effect free while other credentials remain removed.

Fixes pre-existing failures: test_code_indexer_output.py (8) +
test_code_indexer_concurrent.py (1).
…essage

The conftest now sets DEEPSEEK_API_KEY placeholder, so
_has_cloud_credential() returns True and the ready message no longer
contains 'deepcode provider set'. Assert on 'Initialized' instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant