File: helper.py

package info (click to toggle)
python-youtubeaio 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 720 kB
  • sloc: python: 1,549; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 280 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
"""Test helpers."""

from youtubeaio.models import YouTubeThumbnail


def get_thumbnail(resolution: str) -> YouTubeThumbnail:
    """Return mock thumbnail with resolution as url."""
    return YouTubeThumbnail(
        url=resolution,
        width=100,
        height=100,
    )