File: conftest.py

package info (click to toggle)
python-youtubeaio 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 788 kB
  • sloc: python: 1,658; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
"""Pytest configuration for Syrupy snapshot testing with Youtube extension."""

import pytest

from syrupy import SnapshotAssertion
from tests.syrupy import YoutubeSnapshotExtension


@pytest.fixture(name="snapshot")
def snapshot_assertion(snapshot: SnapshotAssertion) -> SnapshotAssertion:
    """Return snapshot assertion fixture with the Youtube extension."""
    return snapshot.use_extension(YoutubeSnapshotExtension)