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

Fix test failures #1134

Merged
merged 2 commits into from Mar 19, 2023
Merged

Fix test failures #1134

merged 2 commits into from Mar 19, 2023

Conversation

akrabat
Copy link
Member

@akrabat akrabat commented Mar 16, 2023

Due to the way our CI was set up and a failure to manually run the pytest tests locally before merging, we ended up merging two PRS (#1111 and #1126) that broke the tests. This PR fixes both.

For #1126, test_stylesheet_includes is now a two-column PDF again so we need to update the reference file.

For #1111, recording dependencies breaks Sphinx, which does't even allow this option to be set. Hence, if the --record-dependencies option is not set, we no longer do the recording as we're not going to use the result anyway.

If the `--record-dependencies` option is not set, then do not record
dependencies. There's no need to do this work if we don't want to output
the results.

In addition, it breaks Sphinx and there's no way to turn it on when
using Sphinx anyway.
Now that we have restored TwoColumn back into the default stylesheet,
this test generates a two column PDF.
Copy link
Contributor

@lornajane lornajane left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good both here in CI and locally

@lornajane lornajane merged commit f7f4ea6 into rst2pdf:main Mar 19, 2023
@akrabat akrabat deleted the fix-test-failures branch March 19, 2023 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants