Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace requests with httpx #147

Merged
merged 9 commits into from Oct 3, 2023
Merged

Replace requests with httpx #147

merged 9 commits into from Oct 3, 2023

Commits on Oct 3, 2023

  1. Replace responses with pytest-recording

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    c1f9aa9 View commit details
    Browse the repository at this point in the history
  2. Add pytest-asyncio dev dependency

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    bbc941b View commit details
    Browse the repository at this point in the history
  3. Use VCR recordings for tests

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    28a7d7d View commit details
    Browse the repository at this point in the history
  4. Inject mock API token into tests

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    664133c View commit details
    Browse the repository at this point in the history
  5. Replace requests with httpx

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    2e2f40b View commit details
    Browse the repository at this point in the history
  6. Update client to use httpx

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    
    Add respx dependency
    
    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    a74430e View commit details
    Browse the repository at this point in the history
  7. Re-record test cassettes

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    38453db View commit details
    Browse the repository at this point in the history
  8. Add custom retry transport

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    ff51f4d View commit details
    Browse the repository at this point in the history
  9. Ignore warning about use of non-cryptographic RNGs

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    ecf354c View commit details
    Browse the repository at this point in the history