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

One unit test is outdated #40

Open
heyodai opened this issue Nov 8, 2023 · 1 comment
Open

One unit test is outdated #40

heyodai opened this issue Nov 8, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@heyodai
Copy link
Owner

heyodai commented Nov 8, 2023

(env) (base) odai:cli/ (main✗) $ pytest                                                                                                                                                                                                              [17:34:50]
===================================================================================================================== test session starts ======================================================================================================================
platform darwin -- Python 3.9.12, pytest-7.4.0, pluggy-1.0.0
rootdir: /Users/odai/magic-commit/cli
plugins: dotenv-0.5.2, anyio-3.6.2
collected 3 items                                                                                                                                                                                                                                              

magic_commit/tests/test_magic_commit.py ..F                                                                                                                                                                                                              [100%]

=========================================================================================================================== FAILURES ===========================================================================================================================
___________________________________________________________________________________________________________ test_generate_commit_message_no_api_key ____________________________________________________________________________________________________________

    def test_generate_commit_message_no_api_key():
        with pytest.raises(OpenAIKeyError):
>           generate_commit_message("test message", "", "gpt-3.5-turbo")
E           TypeError: generate_commit_message() missing 2 required positional arguments: 'api_key' and 'model'

magic_commit/tests/test_magic_commit.py:25: TypeError
=================================================================================================================== short test summary info ====================================================================================================================
FAILED magic_commit/tests/test_magic_commit.py::test_generate_commit_message_no_api_key - TypeError: generate_commit_message() missing 2 required positional arguments: 'api_key' and 'model'
================================================================================================================= 1 failed, 2 passed in 0.34s ==================================================================================================================
@heyodai heyodai added the bug Something isn't working label Nov 8, 2023
@heyodai
Copy link
Owner Author

heyodai commented Nov 8, 2023

We should fix this while doing #7

@heyodai heyodai added this to the Add basic CI/CD workflows milestone Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant