Skip to content

Tests: run tests with the ext-theme #11383

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

Merged
merged 15 commits into from
Jun 26, 2024
Merged

Tests: run tests with the ext-theme #11383

merged 15 commits into from
Jun 26, 2024

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Jun 6, 2024

  • A new tox/circle job was added to run the tests with ext-theme enabled
  • The new theme makes use of some URLs that are defined .com, and while testing on .org with organizations enabled, it leads to errors. I'm adding some placeholder URLs to solve that.
  • There are some sentences/words that are different in the new theme. I just updated the old templates to match where I can, other places I just did a case-insensitive check.
  • We were trying to import readthedocsext to check if that app was available, but since the new theme shares that same namespace, we need to check for something else more specific to our ext app.

ref #11299

@stsewd stsewd marked this pull request as ready for review June 12, 2024 22:07
@stsewd stsewd requested review from a team as code owners June 12, 2024 22:07
@stsewd stsewd requested review from agjohnson and humitos June 12, 2024 22:07
@stsewd stsewd force-pushed the run-tests-with-ext-theme branch from ce4a15a to 01ef066 Compare June 12, 2024 22:08
@stsewd stsewd marked this pull request as draft June 12, 2024 22:25
@stsewd
Copy link
Member Author

stsewd commented Jun 12, 2024

Back to draft, forgot to run proxito tests...

@agjohnson
Copy link
Contributor

Expect some potential issues with proxito, as the templates have not been used on that instance yet.

Comment on lines -34 to -38
# Patch URLs that call the `fast_404` view directly.
for pattern in urlpatterns:
if getattr(pattern, "name", None) == "docs_detail_directory_indexing":
pattern.callback = handler404
break
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have a URL named docs_detail_directory_indexing, so not sure what this was about.

@stsewd stsewd marked this pull request as ready for review June 13, 2024 22:17
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a pretty minimal change 👍

@stsewd stsewd merged commit 019719a into main Jun 26, 2024
5 of 6 checks passed
@stsewd stsewd deleted the run-tests-with-ext-theme branch June 26, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants