Unit test errors #35
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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!'