Open alejandrosame opened 3 months ago
As noted in https://github.com/Nix-Security-WG/nix-security-tracker/pull/165#discussion_r1682547683, the following refactor will improve the readability of the Github sync code and its test suite:
set_groups_for_new_user
GithubState
user_sign_up
@patch
As noted in https://github.com/Nix-Security-WG/nix-security-tracker/pull/165#discussion_r1682547683, the following refactor will improve the readability of the Github sync code and its test suite:
set_groups_for_new_user
inside theGithubState
class, and connect it to theuser_sign_up
signal within the constructor.@patch
to mock the GitHub requests.