Skip to content

some tests fail on cmd line, but it works in VS Code Test Explorer #91

@bmerkle

Description

@bmerkle

running tests in windows powershell fails 6 tests unfortunately (example) below.
running tests with VS Code Test Explorer runs all tests successfully.

seems to be a environment problem, (googling or asking chatGPT leads to same direction) but i did not find a real solution or trace.
python interpreter and env variables are the same

not a big issue but i usually prefer cmd line over clicking ;) and github ci obviously runs fine on linux ubuntu

(.venv) PS C:\work\microsoft\typeagent-py\test> .\make.bat test
=================================================== short test summary info ==================================================== 
FAILED test_factory.py::test_create_conversation_and_add_messages - RuntimeError: Knowledge extraction failed: Expecting value: line 1 column 1 (char 0) -- MESSAGE='Hello, how are you?'
FAILED test_incremental_index.py::test_incremental_index_with_vtt_files - RuntimeError: Failed to parse VTT file testdata/Confuse-A-Cat.vtt: [Errno 2] No such file or directory: 'testdata/Confuse-A-...
FAILED test_mcp_server.py::test_mcp_server_query_conversation_slow - JSONDecodeError('Expecting value: line 1 column 1 (char 0)') [single exception in ExceptionGroup]
FAILED test_podcasts.py::test_ingest_podcast - FileNotFoundError: [Errno 2] No such file or directory: 'testdata/FakePodcast.txt'
FAILED test_query_method.py::test_query_method_basic - RuntimeError: Knowledge extraction failed: Expecting value: line 1 column 1 (char 0) -- MESSAGE='Welcome to the Python progr...
FAILED test_query_method.py::test_query_method_empty_conversation - AssertionError: assert ('no answer' in 'search failed: expecting value: line 1 column 1 (char 0)' or 'unable to find' in 'se...
========================================== 6 failed, 345 passed, 4 skipped in 48.54s =========================================== 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions