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

make untestable parts testable non-interactively #69

Open
chainsawriot opened this issue Nov 14, 2022 · 6 comments · Fixed by #83
Open

make untestable parts testable non-interactively #69

chainsawriot opened this issue Nov 14, 2022 · 6 comments · Fixed by #83
Assignees

Comments

@chainsawriot
Copy link
Collaborator

chainsawriot commented Nov 14, 2022

auth_setup's state of being completely untested scares me.

@chainsawriot
Copy link
Collaborator Author

https://github.com/schochastics/rtoot/blob/6cb54be861889de817ba3dae56102b4c70a56f3a/R/auth.R#L32-L42

Spin off this non-interactive part and test this part.

schochastics added a commit that referenced this issue Nov 15, 2022
use parameter `verbose`; spin off non-interactive parts in `auth_setup` #69
@chainsawriot chainsawriot changed the title make auth_setup testable non-interactively make untestable parts testable non-interactively Nov 16, 2022
@chainsawriot
Copy link
Collaborator Author

chainsawriot commented Nov 16, 2022

  • auth_setup - 60% done
    • check_token_rtoot
  • process_query's rate limit
    • wait_until
    • rate_limit_remaining

@chainsawriot
Copy link
Collaborator Author

chainsawriot commented Nov 28, 2022

@chainsawriot
Copy link
Collaborator Author

  • Breakdown create_token into units

@chainsawriot
Copy link
Collaborator Author

chainsawriot commented Nov 28, 2022

  • verify_credentials for public tokens

@chainsawriot
Copy link
Collaborator Author

chainsawriot commented Nov 28, 2022

  • auth_setup verbose

chainsawriot added a commit to chainsawriot/rtoot that referenced this issue Dec 22, 2022
* Testable + unit tests
* Reduce cyclomatic complexity
* Using semantic variable name (`api_response` vs `tmp`)
schochastics added a commit that referenced this issue Dec 22, 2022
refactor rate limit checking code in `process_request`, ref #69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant