https://koji.fedoraproject.org/koji/taskinfo?taskID=92425360
I had to adjust the python3-pytest-cov requirement (rawhide has 4.0.0 now), but after that the following tests failed:
=========================== short test summary info ============================
FAILED fasjson_client/tests/unit/test_cli_get_cert.py::test_existing - assert...
FAILED fasjson_client/tests/unit/test_cli_get_cert.py::test_existing_no_cert
FAILED fasjson_client/tests/unit/test_cli_get_cert.py::test_existing_no_user
FAILED fasjson_client/tests/unit/test_cli_get_cert.py::test_existing_api_error
FAILED fasjson_client/tests/unit/test_cli_get_cert.py::test_sign_make_pkey - ...
FAILED fasjson_client/tests/unit/test_cli_get_cert.py::test_sign_error - asse...
FAILED fasjson_client/tests/unit/test_client_api.py::test_api_success - jsons...
FAILED fasjson_client/tests/unit/test_client_api.py::test_api_unknown_operation
FAILED fasjson_client/tests/unit/test_client_api.py::test_api_list_operations
FAILED fasjson_client/tests/unit/test_client_api.py::test_api_error - jsonsch...
FAILED fasjson_client/tests/unit/test_client_api.py::test_api_error_text - js...
FAILED fasjson_client/tests/unit/test_client_api.py::test_get_all_users - jso...
FAILED fasjson_client/tests/unit/test_client_api.py::test_get_all_groups - js...
FAILED fasjson_client/tests/unit/test_client_api.py::test_list_all_entities_wrong_name
FAILED fasjson_client/tests/unit/test_response.py::test_response_paged - json...
FAILED fasjson_client/tests/unit/test_response.py::test_response_single_page
FAILED fasjson_client/tests/unit/test_response.py::test_response_wrapper - js...
================= 17 failed, 40 passed, 309 warnings in 4.08s ==================
invoker = <function invoker..invoke at 0x7fd266fe4720>
server = <fasjson_client.tests.unit.utils.FasJsonMock object at 0x7fd267005890>
tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_existing0')
get_cert_b64 = <function get_cert_b64.._get_cert at 0x7fd266fe4c20>
fixture_dir = '/builddir/build/BUILD/fasjson-client-1.0.7/fasjson_client/tests/unit/fixtures'
def test_existing(invoker, server, tmp_path, get_cert_b64, fixture_dir):
dest_file = os.path.join(tmp_path, "dummy")
user_response = {
# Reverse the list to make sure the certs are sorted.
"result": {
"certificates": list(reversed([get_cert_b64(idx) for idx in range(1, 5)]))
}
}
server.mock_endpoint("/users/dummy/", json=user_response)
result = invoker("--existing", "-u", "dummy", "--save-to", dest_file)
assert result.exit_code == 0
E assert 1 == 0
E + where 1 = <Result RefResolutionError(_cause=NoMockAddress(<requests_mock.request._RequestObjectProxy object at 0x7fd266fef810>))>.exit_code
fasjson_client/tests/unit/test_cli_get_cert.py:84: AssertionError
____________________________ test_existing_no_cert _____________________________
invoker = <function invoker..invoke at 0x7fd266f22d40>
server = <fasjson_client.tests.unit.utils.FasJsonMock object at 0x7fd266ee9110>
tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_existing_no_cert0')
def test_existing_no_cert(invoker, server, tmp_path):
dest_file = os.path.join(tmp_path, "dummy")
user_response = {"result": {"certificates": []}}
server.mock_endpoint("/users/dummy/", json=user_response)
result = invoker("--existing", "-u", "dummy", "--save-to", dest_file)
assert result.exit_code == 1
expected_msg = "Error: No existing certificate, you need to request one.\n"
assert result.output == expected_msg
E AssertionError: assert '' == 'Error: No ex...equest one.\n'
E - Error: No existing certificate, you need to request one.
fasjson_client/tests/unit/test_cli_get_cert.py:101: AssertionError
...