azure-devops-python-api icon indicating copy to clipboard operation
azure-devops-python-api copied to clipboard

AttributeError: 'ClientFactoryV5_1' object has no attribute 'get_test_results_client'

Open tune-glitch opened this issue 5 years ago • 2 comments

test_results_client = connection.clients.get_test_results_client() test_results_client = connection.clients_v5_1.get_test_results_client() test_results_client = connection.clients_v6_0.get_test_results_client()

I get the same attribute error of get_test_results having no attribute. I looked in client_factory, client_factory[5.1], and client_factory[6.0] and the method is there.

-Any ideas?

tune-glitch avatar Jul 06 '20 14:07 tune-glitch

Yes, as you said the method is there: https://github.com/microsoft/azure-devops-python-api/blob/85bd41729c8fd6249f4866844ecf9bb131e2dcfe/azure-devops/azure/devops/v5_1/client_factory.py#L333

Check your imports to ensure you are not referencing an older version of the sdk.

tedchamb avatar Aug 13 '20 17:08 tedchamb

Yes, as you said the method is there:

https://github.com/microsoft/azure-devops-python-api/blob/85bd41729c8fd6249f4866844ecf9bb131e2dcfe/azure-devops/azure/devops/v5_1/client_factory.py#L333

Check your imports to ensure you are not referencing an older version of the sdk.

Could you please elaborate further? Specifically dealing with checking imports and older sdk version.

tune-glitch avatar Aug 13 '20 17:08 tune-glitch