Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akhmerov committed Jun 5, 2023
1 parent 4a7a3b6 commit 7907803
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def test_header_repository_buttons(
def test_source_button_url(sphinx_build_factory, file_regression, provider, repo):
"""Test that source button URLs are properly constructed."""
# All buttons on
use_issues = "github.com" in repo
use_issues = "github.com" in repo or "gitlab.com" in repo or provider == "gitlab"
confoverrides = {
"html_theme_options": {
"repository_url": repo,
Expand Down
2 changes: 2 additions & 0 deletions tests/test_build/header__source-buttons--gitlab.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
<i class="fas fa-code"></i>
https://gitlab.com/gitlab-org/gitlab/-/edit/main/section1/ntbk.ipynb
<i class="fas fa-pencil-alt"></i>
https://gitlab.com/gitlab-org/gitlab/-/issues/new?issue[title]=Issue%20on%20page%20%2Fsection1/ntbk.html&issue[description]=Your%20issue%20content%20here.
<i class="fas fa-lightbulb"></i>
2 changes: 2 additions & 0 deletions tests/test_build/header__source-buttons--gitlab_manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
<i class="fas fa-code"></i>
https://mywebsite.com/gitlab/gitlab-org/gitlab/-/edit/main/section1/ntbk.ipynb
<i class="fas fa-pencil-alt"></i>
https://mywebsite.com/gitlab/gitlab-org/gitlab/-/issues/new?issue[title]=Issue%20on%20page%20%2Fsection1/ntbk.html&issue[description]=Your%20issue%20content%20here.
<i class="fas fa-lightbulb"></i>

0 comments on commit 7907803

Please sign in to comment.