ytdl-sub/tests/unit/config
Jesse Bannon 970c74ba45
[FEATURE] inspect subcommand (#1407)
Subscription file syntax is designed to minimize boiler-plate when authoring new subscriptions.
You can now unpack any subscription using the ``inspect`` sub-command to see its boiler-plate *preset format*.

```
ytdl-sub inspect --config /path/to/config.yaml --match "BBC News" /path/to/subscriptions.yaml
```

This can be utilized for numerous purposes including:

* Ensuring your custom preset is getting applied correctly.
* Figuring out which variables set things like file names, metadata, etc.
* Understanding how subscription syntax translates to preset representation.

The default ``--level`` of inspect will fill in defined variables. Using ``--level original`` will present the subscription's raw layout with no fill.
2026-04-13 10:10:58 -07:00
..
__init__.py Validate all preset StringFormatValidators on init (#79) 2022-06-28 09:34:30 -07:00
conftest.py [BUGFIX] Have __preset__ override nested preset keys (#784) 2023-10-25 11:35:52 -07:00
test_config_file.py [DEV] Linter: Use ruff over black and isort (#1445) 2026-03-09 11:39:01 -07:00
test_preset.py [DEV] Linter: Use ruff over black and isort (#1445) 2026-03-09 11:39:01 -07:00
test_subscription.py [DEV] Linter: Use ruff over black and isort (#1445) 2026-03-09 11:39:01 -07:00
test_subscription_resolution.py [FEATURE] inspect subcommand (#1407) 2026-04-13 10:10:58 -07:00
test_subscription_validation.py [DEV] Linter: Use ruff over black and isort (#1445) 2026-03-09 11:39:01 -07:00