test_youtube.py 334 B

123456789
  1. import pytest
  2. from videos.sources.youtube import lookup_video_from_youtube
  3. @pytest.mark.skip(reason="Need to configure Youtube API stuffs in CI")
  4. @pytest.mark.django_db
  5. def test_lookup_youtube_id():
  6. metadata = lookup_video_from_youtube("RZxs9pAv99Y")
  7. assert metadata.title == "No Pun Included's Board Game of the Year 2024"