Unit test errors #35

Open
opened 2024-10-04 22:04:27 +08:00 by Muzhi · 0 comments

1.node_test5.py
============================== short test summary info ==============================
FAILED node_test5.py::TestGetLocalIP::test_get_ip_from_env - AssertionError: '' != '60.204.193.58'
FAILED node_test5.py::TestGetLocalIP::test_get_ip_from_socket - AssertionError: expected call not found.
FAILED node_test5.py::TestSendIP::test_send_ip - requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=10809...
FAILED node_test5.py::test_user_src - assert 422 == 200
FAILED node_test5.py::test_send_user_des_message - assert 503 == 200
================ 5 failed, 2 passed, 2 skipped, 6 warnings in 17.62s ================

2.test_client.py
注释部分无法通过测试
报错:
FAILED test_client.py::test_request_message - assert 400 == 200
FAILED test_client.py::test_receive_request - AssertionError: assert 'threshold' in {'detail': 'Wrong ip', 'headers': None, 's...
3.tpre_test.py
注释部分无法通过测试
报错:
============================== short test summary info ==============================
FAILED tpre_test.py::TestEncryptDecrypt::test_encrypt_decrypt - TypeError: object of type 'int' has no len()
FAILED tpre_test.py::TestDecryptFrags::test_decrypt_frags - AssertionError: b'' != b'Hello, world!'

1.node_test5.py ============================== short test summary info ============================== FAILED node_test5.py::TestGetLocalIP::test_get_ip_from_env - AssertionError: '' != '60.204.193.58' FAILED node_test5.py::TestGetLocalIP::test_get_ip_from_socket - AssertionError: expected call not found. FAILED node_test5.py::TestSendIP::test_send_ip - requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=10809... FAILED node_test5.py::test_user_src - assert 422 == 200 FAILED node_test5.py::test_send_user_des_message - assert 503 == 200 ================ 5 failed, 2 passed, 2 skipped, 6 warnings in 17.62s ================ 2.test_client.py 注释部分无法通过测试 报错: FAILED test_client.py::test_request_message - assert 400 == 200 FAILED test_client.py::test_receive_request - AssertionError: assert 'threshold' in {'detail': 'Wrong ip', 'headers': None, 's... 3.tpre_test.py 注释部分无法通过测试 报错: ============================== short test summary info ============================== FAILED tpre_test.py::TestEncryptDecrypt::test_encrypt_decrypt - TypeError: object of type 'int' has no len() FAILED tpre_test.py::TestDecryptFrags::test_decrypt_frags - AssertionError: b'' != b'Hello, world!'
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sangge/tpre-python#35
No description provided.