============================= test session starts =============================
platform win32 -- Python 3.11.9, pytest-9.0.1, pluggy-1.6.0
rootdir: C:\Users\rahul\.gemini\antigravity\playground\vector-meteoroid\qwed_new
configfile: pytest.ini (WARNING: ignoring pytest config in pyproject.toml!)
plugins: anyio-4.11.0, locust-2.42.6, asyncio-1.3.0, cov-7.0.0, timeout-2.4.0, xdist-3.8.0
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 16 items

tests\test_cli_init.py .FFF.F                                            [ 37%]
tests\test_cli_verify.py FFF.FF....                                      [100%]

================================== FAILURES ===================================
__________________________ test_init_success_openai ___________________________
tests\test_cli_init.py:41: in test_init_success_openai
    mock_provider.auth_type = AuthType.BEARER
                              ^^^^^^^^^^^^^^^
C:\Users\rahul\AppData\Local\Programs\Python\Python311\Lib\enum.py:786: in __getattr__
    raise AttributeError(name) from None
E   AttributeError: BEARER
_____________________ test_init_missing_gitignore_add_yes _____________________
tests\test_cli_init.py:80: in test_init_missing_gitignore_add_yes
    assert result.exit_code == 0
E   assert 1 == 0
E    +  where 1 = <Result SystemExit(1)>.exit_code
_____________________ test_init_missing_gitignore_add_no ______________________
tests\test_cli_init.py:102: in test_init_missing_gitignore_add_no
    assert "refusing to write secrets without .gitignore protection" in result.output
E   AssertionError: assert 'refusing to write secrets without .gitignore protection' in '\\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\\n\U0001f52c QWED \u2014 Secure LLM Configuration\\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501...s default active provider? [Y/n]: n\\n\\n\u26a0\ufe0f  .env NOT found in .gitignore!\\n   Add .env to .gitignore? [Y/n]:Aborted!\\n '
E    +  where '\\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\\n\U0001f52c QWED \u2014 Secure LLM Configuration\\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501...s default active provider? [Y/n]: n\\n\\n\u26a0\ufe0f  .env NOT found in .gitignore!\\n   Add .env to .gitignore? [Y/n]:Aborted!\\n ' = <Result SystemExit(1)>.output
_______________________ test_init_connection_fail_abort _______________________
tests\test_cli_init.py:129: in test_init_connection_fail_abort
    mock_provider.auth_type = AuthType.BEARER
                              ^^^^^^^^^^^^^^^
C:\Users\rahul\AppData\Local\Programs\Python\Python311\Lib\enum.py:786: in __getattr__
    raise AttributeError(name) from None
E   AttributeError: BEARER
________________________ test_verify_success_provider _________________________
tests\test_cli_verify.py:24: in test_verify_success_provider
    assert "VERIFIED: 4" in result.output
E   AssertionError: assert 'VERIFIED: 4' in ''
E    +  where '' = <Result okay>.output
________________________ test_verify_success_base_url _________________________
tests\test_cli_verify.py:46: in test_verify_success_base_url
    mock_qwedlocal.assert_called_once_with(
C:\Users\rahul\AppData\Local\Programs\Python\Python311\Lib\unittest\mock.py:951: in assert_called_once_with
    return self.assert_called_with(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\Users\rahul\AppData\Local\Programs\Python\Python311\Lib\unittest\mock.py:939: in assert_called_with
    raise AssertionError(_error_message()) from cause
E   AssertionError: expected call not found.
E   Expected: QWEDLocal(base_url='http://localhost/v1', model='custom', api_key=None, cache=True, mask_pii=False)
E     Actual: QWEDLocal(base_url='http://localhost/v1', model='custom', api_key='qwed_live_VJO2vWhLgZnuXwIePn_s5o2-MTFncN2KJZJAf2jiuOI', cache=True, mask_pii=False)
_________________________ test_verify_failure_result __________________________
tests\test_cli_verify.py:66: in test_verify_failure_result
    assert result.exit_code == 1
E   assert 0 == 1
E    +  where 0 = <Result okay>.exit_code
_____________________ test_verify_active_provider_ollama ______________________
tests\test_cli_verify.py:90: in test_verify_active_provider_ollama
    mock_qwedlocal.assert_called_once_with(
C:\Users\rahul\AppData\Local\Programs\Python\Python311\Lib\unittest\mock.py:951: in assert_called_once_with
    return self.assert_called_with(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\Users\rahul\AppData\Local\Programs\Python\Python311\Lib\unittest\mock.py:939: in assert_called_with
    raise AssertionError(_error_message()) from cause
E   AssertionError: expected call not found.
E   Expected: QWEDLocal(base_url='http://test', model='test-model', api_key=None, cache=True, mask_pii=False)
E     Actual: QWEDLocal(base_url='http://test', model='test-model', api_key='qwed_live_VJO2vWhLgZnuXwIePn_s5o2-MTFncN2KJZJAf2jiuOI', cache=True, mask_pii=False)
______________________ test_verify_active_provider_named ______________________
tests\test_cli_verify.py:110: in test_verify_active_provider_named
    mock_qwedlocal.assert_called_once_with(
C:\Users\rahul\AppData\Local\Programs\Python\Python311\Lib\unittest\mock.py:951: in assert_called_once_with
    return self.assert_called_with(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\Users\rahul\AppData\Local\Programs\Python\Python311\Lib\unittest\mock.py:939: in assert_called_with
    raise AssertionError(_error_message()) from cause
E   AssertionError: expected call not found.
E   Expected: QWEDLocal(provider='anthropic', api_key='sk-ant-test', model='gpt-3.5-turbo', cache=True, mask_pii=False)
E     Actual: QWEDLocal(provider='anthropic', api_key='qwed_live_VJO2vWhLgZnuXwIePn_s5o2-MTFncN2KJZJAf2jiuOI', model='gpt-3.5-turbo', cache=True, mask_pii=False)
=========================== short test summary info ===========================
FAILED tests/test_cli_init.py::test_init_success_openai - AttributeError: BEARER
FAILED tests/test_cli_init.py::test_init_missing_gitignore_add_yes - assert 1...
FAILED tests/test_cli_init.py::test_init_missing_gitignore_add_no - Assertion...
FAILED tests/test_cli_init.py::test_init_connection_fail_abort - AttributeErr...
FAILED tests/test_cli_verify.py::test_verify_success_provider - AssertionErro...
FAILED tests/test_cli_verify.py::test_verify_success_base_url - AssertionErro...
FAILED tests/test_cli_verify.py::test_verify_failure_result - assert 0 == 1
FAILED tests/test_cli_verify.py::test_verify_active_provider_ollama - Asserti...
FAILED tests/test_cli_verify.py::test_verify_active_provider_named - Assertio...
======================== 9 failed, 7 passed in 11.30s =========================
