From 393aa58f2c5afd51f92fd9bd4b6dfd0dc90cea41 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Fri, 5 Aug 2022 01:00:19 -0400 Subject: New upstream version 8.2.3. --- tests/test_rst_compiler.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'tests/test_rst_compiler.py') diff --git a/tests/test_rst_compiler.py b/tests/test_rst_compiler.py index 803fd79..88638f7 100644 --- a/tests/test_rst_compiler.py +++ b/tests/test_rst_compiler.py @@ -87,6 +87,29 @@ def test_youtube_iframe(): ) +def test_youtube_iframe_start_at(): + """Test Youtube iframe tag generation with start_at attribute""" + + sample = ".. youtube:: YID\n :height: 400\n :width: 600\n :start_at: 60" + html = get_html_from_rst(sample) + assert_html_contains( + html, + "iframe", + attributes={ + "src": ( + "https://www.youtube-nocookie.com" + "/embed/YID?rel=0&" + "wmode=transparent&start=60" + ), + "height": "400", + "width": "600", + "frameborder": "0", + "allowfullscreen": "", + "allow": "encrypted-media", + }, + ) + + def test_vimeo(disable_vimeo_api_query): """Test Vimeo iframe tag generation""" -- cgit v1.2.3