ytdl-sub/tests/unit/validators
Jesse Bannon 5e335b195c
[FEATURE] Allow YAML maps and lists in overrides, convert to script format (#956)
Adds the ability to create map and list-based override variables. 

For example, you can now create lists like this:
```
overrides:
  urls:
    - "https://...1"
    - "https://...2"
```
which is equivalent to:
```
overrides:
  urls: >-
    {
      [
        "https://...1",
        "https://...2",
      ]
    }
```

Likewise, maps can now look like:
```
overrides:
  music_video_category:
    concerts:
      - "https://...1"
      - "https://...2"
    interviews:
      - "https://...3"
```
which is equivalent to:
```
overrides:
  music_video_category: >-
    {
      "concerts": [
        "https://...1",
        "https://...2"
      ],
      "interviews": [
        "https://...3"
      ]
    }
```
2024-06-02 20:02:48 -07:00
..
__init__.py make validator abstract, unit tests for bool and str validator 2022-04-05 07:00:45 +00:00
conftest.py make validator abstract, unit tests for bool and str validator 2022-04-05 07:00:45 +00:00
test_bool_validator.py setup cfg 2022-04-26 07:19:53 +00:00
test_dict_validator.py [DEV] String validators to allow ints, floats, bools (#810) 2023-11-16 23:50:51 -08:00
test_file_path_validators.py [BACKEND][HUGE] Function Support in variable syntax (#838) 2023-12-18 16:08:15 -08:00
test_regex_validator.py [BACKEND] Allow list validators to support length-1 lists without defining a yaml list (#126) 2022-07-26 09:10:51 -07:00
test_string_formatter_validator.py [FEATURE] Allow YAML maps and lists in overrides, convert to script format (#956) 2024-06-02 20:02:48 -07:00
test_string_validator.py [DEV] String validators to allow ints, floats, bools (#810) 2023-11-16 23:50:51 -08:00