aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_rst_compiler.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-08-05 01:00:44 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2022-08-05 01:00:44 -0400
commitc61750def3e047296a3633247aec4637bd216633 (patch)
treecd7175c2f172e20255adb7d0ccf9a5fa405df175 /tests/test_rst_compiler.py
parent9132854aa950a4c85c89cf7617d3240bd3fe1cbd (diff)
parent393aa58f2c5afd51f92fd9bd4b6dfd0dc90cea41 (diff)
Update upstream source from tag 'upstream/8.2.3'
Update to upstream version '8.2.3' with Debian dir 572430fed4befec44daff4153d2f83da363024d0
Diffstat (limited to 'tests/test_rst_compiler.py')
-rw-r--r--tests/test_rst_compiler.py23
1 files changed, 23 insertions, 0 deletions
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"""