Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dirhtml builder without ogp_site_url #84

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions tests/test_options.py
Expand Up @@ -279,3 +279,17 @@ def test_rtd_invalid(app: Sphinx, monkeypatch):

with pytest.raises(Exception):
app.build()


# Test no breakage with no configuration
@pytest.mark.sphinx("html", testroot="no-configuration")
def test_no_configuration_html(og_meta_tags):
print(og_meta_tags)
rkdarst marked this conversation as resolved.
Show resolved Hide resolved
assert get_tag_content(og_meta_tags, "type") == "website"


# Test no breakage with no configuration
@pytest.mark.sphinx("dirhtml", testroot="no-configuration")
def test_no_configuration_dirhtml(og_meta_tags):
print(og_meta_tags)
rkdarst marked this conversation as resolved.
Show resolved Hide resolved
assert get_tag_content(og_meta_tags, "type") == "website"