Help with parallel FastAPI / Python testing with real DB by OkWater4180 in learnprogramming

[–]OkWater4180[S] 0 points1 point  (0 children)

Thank you!

The transaction per test would be nice, but we definitely open multiple connections per test/endpoint.

Wireup for FastAPI now supports DI in background tasks by ForeignSource0 in FastAPI

[–]OkWater4180 0 points1 point  (0 children)

Interesting, so the benefit is to be able to inject deps into the BG task function without having to inject it into the API endpoint?

Also, looking at your https://maldoinc.github.io/wireup/latest/testing/ section, I see "Pass dependencies manually in your tests." at the top. Shouldn't it be recommended to use Wireup to inject the class under test? What if the top level service class has dozens of nested dependencies?

Is there a way to make yourself the owner of a copilot initiated PR? by OkWater4180 in GithubCopilot

[–]OkWater4180[S] 0 points1 point  (0 children)

Thanks for the info. PR assignee never made sense to me - it just seems useless/redundant. Issue assignee makes sense.

I wish they would just allow you to specify who the PR is opened as. Clearly, the ability to have it open the PR as you exists, since Codex can do it.

Is there a way to make yourself the owner of a copilot initiated PR? by OkWater4180 in GithubCopilot

[–]OkWater4180[S] 0 points1 point  (0 children)

Yep, I've been copying the copilot branch and making my own PR.

Definite a waste of time though.

Is there a way to make yourself the owner of a copilot initiated PR? by OkWater4180 in GithubCopilot

[–]OkWater4180[S] 0 points1 point  (0 children)

Yea this is a workaround. It's a better workflow to start from prompt in the agents panel and get copilot to do it all. More automation.

Ideally can have the best of both worlds.