Commit graph ytmusicapi/tests/auth/test_oauth.py
Author SHA1 Message Date
sigma67
a004bed436
refactor YTMusicBase, improve oauth doc (#727)
* refactor YTMusicBase, improve oauth doc

* fix recursion issue

* fix bugs, fix coverage, add session test
2025-01-19 14:37:31 +01:00
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
sigma67
7ef703c213
Fix get_history (#691)
* fix get_history feedbackToken parsing

* remove broken playlist test

* skip broken tests for now
2024-12-17 12:21:04 +01:00
sigma67
77e40b7f7d
refactor: use pathlib (#654)
* refactor: use pathlib

* fix size mock
2024-10-05 12:39:21 +02:00
sigma67
828b1b9810
drop 3.8, add pytest-retry (#592)
* drop 3.8, add pytest-retry

* fix mypy

* fix missing import
2024-07-13 20:40:50 +02:00
sigma67
b87c783d45
ruff: pyupgrade 2024-01-18 21:48:04 +01:00
sigma67
9506bfd6d5
fix #501 (#502)
* fix #501

* enable tests on PR
2024-01-03 21:15:00 +01:00
sigma67
69dd4a9f2f test restructuring via pytest 2024-01-02 22:09:22 +01:00