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_pelican.py to ensure any directory while starting pytest. #3374

Open
egberts opened this issue Jul 23, 2024 · 0 comments
Open

Fix test_pelican.py to ensure any directory while starting pytest. #3374

egberts opened this issue Jul 23, 2024 · 0 comments
Labels

Comments

@egberts
Copy link
Contributor

egberts commented Jul 23, 2024

  • [ x] I have read the Filing Issues and subsequent “How to Get Help” sections of the documentation.
  • [ x] I have searched the issues (including closed ones) and believe that this is not a duplicate.

Issue

When within pelican/pelican/tests subdirectory, following tests failed in PyCharm IDE:

  • test_main_on_content()
  • test_main_on_content_markdown_disabled()

Also due to missing pelican Python file, this test fails.

Only way to pass these tests is to change working directory to top of the Pelican package (root dir).

Platform

Click to expand

Platform

  • OS version and name: Linux 6.1.0-21-amd64 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux
  • Python version: 3.11.2
  • Pelican version: HEAD (513abbf)
  • Link to theme: m.css
  • Links to plugins: pelican-plugins
  • Link to your site: n/a
  • Link to your source: n/a
@egberts egberts added the bug label Jul 23, 2024
egberts pushed a commit to egberts/pelican that referenced this issue Jul 23, 2024
Make it work from any directory within the Pelican package.

Also fixes parallelism.
egberts pushed a commit to egberts/pelican that referenced this issue Jul 24, 2024
Make it work from any directory within the Pelican package.

Also fixes parallelism.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant