def METHOD_NAME(
    MockGithubUser, db
):
    # Given
    url = reverse("api-v1:custom_auth:oauth:github-oauth-login")
    client = APIClient()
    email = "test@example.com"
    mock_github_user = mock.MagicMock()
    MockGithubUser.return_value = mock_github_user
    mock_github_user.get_user_info.return_value = {"email": email}
    organisation = Organisation.objects.create(name="Test Org")
    Invite.objects.create(organisation=organisation, email=email)
    # When
    response = client.post(url, data={"access_token": "some-token"})
    # Then
    assert response.status_code == status.HTTP_200_OK