microsoft / azure-quantum-python

The azure-quantum python package submits jobs to the Azure Quantum service.
https://learn.microsoft.com/azure/quantum/
MIT License
126 stars 92 forks source link

Fix slow tests from recordings #608

Closed ArthurKamalov closed 3 months ago

ArthurKamalov commented 6 months ago

This PR tries to reduce run time of tests from recordings.

  1. Previously, we didn't include the request to /.well-known/openid-configuration during authentication, which led to additional network request for each test case that requires authentication.
  2. Added more patches that put 0 seconds wait time for various polling requests.
  3. Also removed all client auth secret related code in favor of Cert file.

Tests that use Microsoft.test provider are also skipped for until the it is fixed.