Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat simplify provider ut code #942

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Conversation

better629
Copy link
Collaborator

Features

  • simplify provider ut code
  • remove spark.yaml and replace with a mock_config

Feature Docs

Influence

Result

(metagpt_v2) MacBook-Pro:MetaGPT xxx$ pytest tests/metagpt/provider/*
========================================================================================================= test session starts ==========================================================================================================                                                                                                                                                                                                                  
tests/metagpt/provider/postprocess/test_base_postprocess_plugin.py .                                                                                                                                                             [  2%]
tests/metagpt/provider/postprocess/test_llm_output_postprocess.py .                                                                                                                                                              [  5%]
tests/metagpt/provider/test_anthropic_api.py ..                                                                                                                                                                                  [ 10%]
tests/metagpt/provider/test_azure_llm.py .                                                                                                                                                                                       [ 12%]
tests/metagpt/provider/test_base_llm.py ..                                                                                                                                                                                       [ 17%]
tests/metagpt/provider/test_dashscope_api.py .                                                                                                                                                                                   [ 20%]
tests/metagpt/provider/test_fireworks_llm.py ..                                                                                                                                                                                  [ 25%]
tests/metagpt/provider/test_general_api_base.py .......                                                                                                                                                                          [ 42%]
tests/metagpt/provider/test_general_api_requestor.py ...                                                                                                                                                                         [ 50%]
tests/metagpt/provider/test_google_gemini_api.py .                                                                                                                                                                               [ 52%]
tests/metagpt/provider/test_human_provider.py .                                                                                                                                                                                  [ 55%]
tests/metagpt/provider/test_metagpt_llm.py .                                                                                                                                                                                     [ 57%]
tests/metagpt/provider/test_ollama_api.py .                                                                                                                                                                                      [ 60%]
tests/metagpt/provider/test_open_llm_api.py .                                                                                                                                                                                    [ 62%]
tests/metagpt/provider/test_openai.py .......                                                                                                                                                                                    [ 80%]
tests/metagpt/provider/test_qianfan_api.py .                                                                                                                                                                                     [ 82%]
tests/metagpt/provider/test_spark_api.py ...                                                                                                                                                                                     [ 90%]
tests/metagpt/provider/test_zhipuai_api.py ..                                                                                                                                                                                    [ 95%]
tests/metagpt/provider/zhipuai/test_async_sse_client.py .                                                                                                                                                                        [ 97%]
tests/metagpt/provider/zhipuai/test_zhipu_model_api.py .                                                                                                                                                                         [100%]


-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================================================================================================== 40 passed, 2 warnings in 55.71s ====================================================================================================

Other

Copy link
Owner

@geekan geekan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@geekan geekan merged commit 0f919c5 into geekan:main Feb 28, 2024
1 of 3 checks passed
@better629 better629 deleted the feat_new_qianfan branch March 1, 2024 06:15
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.

2 participants