Skip to content

One unit test is outdated #40

@heyodai

Description

@heyodai
(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 ==================================================================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions