ytmusicapi/tests/auth
Repository files (latest commit first)
Filename Latest commit message Latest commit date
fischcode fe95f5974e
Add optional parameters for OAuth client ID and secret to setup (#688)
* Add optional parameters for OAuth client ID and secret to setup

Use your own Google API client ID and client secret in setup by calling
ytmusicapi oauth --client_id <your Google API client ID> --client_secret <your Google API client secret> to avoid HTTP 400: Bad Request errors

* Improve setup parameter parsing and help texts

- Add subparsers for parameters for oauth and browser tokens
- Add help options
- Add a check for presence of both client_id and client_secret if oauth is chosen.

* ruff autofix

* wip: remove default oauth_client_id & secret, turn into mandatory params

* fix yt_oauth fixture

* fix format/lint

* fix cli args and oauth test

* remove skip

---------

Co-authored-by: sigma67 <sigma67.github@gmail.com>
2024-12-17 13:15:33 +01:00
..
__init__.py test restructuring via pytest 2024-01-02 22:09:22 +01:00
test_browser.py ruff: ruff specific rules 2024-01-18 21:53:23 +01:00
test_oauth.py Add optional parameters for OAuth client ID and secret to setup (#688) 2024-12-17 13:15:33 +01:00