Skip to content

Conversation

06kellyjac
Copy link

Summary

requests_testadapter is an archived repository

Carries on from #4252 (comment)

Implementation using requests_mock is broadly similar and I wouldn't say it's much more complex than requests_testadapter

TODO still need to update uv lock, help updating this would be good. Also wanted to raise the PR to get feedback now.

Related Issues / Discussions

relates to #4252

QA Instructions

Rerunning the tests is sufficient.
I've not ran the longer/more extensive suite but the default tests all run.

Merge Plan

Non user facing code so shouldn't require a merge plan.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

requests_testadapter is an archived repository

Carries on from invoke-ai#4252 (comment)
@github-actions github-actions bot added Root python-tests PRs that change python tests python-deps PRs that change python dependencies labels Sep 23, 2025
@psychedelicious
Copy link
Collaborator

Thanks! Unfortunately, requests_mock is also unmaintained.

If we want to migrate, https://github.com/getsentry/responses appears to be the de-facto choice and is actively maintained. Looks like there is a bit more to it than the other libraries but it's still pretty small.

@06kellyjac
Copy link
Author

ah, darn. I'll rework this 🙂

Also I'm not sure why my imports are in the wrong order. I thought I ran ruff. Maybe it was affected when I rebased.

@06kellyjac 06kellyjac marked this pull request as draft September 23, 2025 14:14
@psychedelicious
Copy link
Collaborator

Maybe the venv wasn't activated when running ruff? It likely won't see the project-specific config without that.

As for uv.lock, theoretically just running uv lock should regenerate it.

@06kellyjac
Copy link
Author

Ah ok. Yeah, it's just it downloads a tonne of stuff on to a drive I don't have much space on. 😅 I'll work something out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python-deps PRs that change python dependencies python-tests PRs that change python tests Root
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants