gptme
gptme copied to clipboard
test: simplified tmux tool test, cleaning up created tmux sessions
trafficstars
:x: 4 Tests Failed:
| Tests completed | Failed | Passed | Skipped |
|---|---|---|---|
| 158 | 4 | 154 | 3 |
View the top 2 failed tests by shortest run time
tests.test_server::test_api_conversation_postStack Traces | 0.052s run time
conv = 'test-server-414127', client = <FlaskClient <Flask 'gptme.server.api'>> def test_api_conversation_post(conv, client: FlaskClient): response = client.post( f"/api/conversations/{conv}", json={"role": "user", "content": "hello"}, ) > assert response.status_code == 200 E assert 500 == 200 E + where 500 = <WrapperTestResponse streamed [500 INTERNAL SERVER ERROR]>.status_code tests/test_server.py:62: AssertionError
tests.test_server::test_api_conversation_generate_streamStack Traces | 0.113s run time
conv = 'test-server-466087', client = <FlaskClient <Flask 'gptme.server.api'>> @pytest.mark.slow def test_api_conversation_generate_stream(conv: str, client: FlaskClient): # Ask the assistant to generate a test response response = client.post( f"/api/conversations/{conv}", json={"role": "user", "content": "hello, just testing"}, ) > assert response.status_code == 200 E assert 500 == 200 E + where 500 = <WrapperTestResponse streamed [500 INTERNAL SERVER ERROR]>.status_code .../gptme/tests/test_server.py:98: AssertionError
View the full list of 1 :snowflake: flaky tests
tests.test_server::test_api_conversation_generateFlake rate in main: 9.68% (Passed 28 times, Failed 3 times)
Stack Traces | 0.036s run time
conv = 'test-server-188925', client = <FlaskClient <Flask 'gptme.server.api'>> @pytest.mark.slow def test_api_conversation_generate(conv: str, client: FlaskClient): # Ask the assistant to generate a test response response = client.post( f"/api/conversations/{conv}", json={"role": "user", "content": "hello, just testing"}, ) > assert response.status_code == 200 E assert 500 == 200 E + where 500 = <WrapperTestResponse streamed [500 INTERNAL SERVER ERROR]>.status_code tests/test_server.py:72: AssertionError
To view more test analytics, go to the Test Analytics Dashboard :loudspeaker: Thoughts on this report? Let us know!