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

More unit tests for settings.py, specifically syntax and indentation error reporting of pelicanconf.py #3380

Open
2 tasks done
egberts opened this issue Jul 24, 2024 · 0 comments · May be fixed by egberts/pelican#3
Open
2 tasks done
Labels

Comments

@egberts
Copy link
Contributor

egberts commented Jul 24, 2024

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

Issue

Added several more unit tests of SyntaxError reporting and IndentationError of pelicanconf.py into a separate test_settings_syntax.py.

Only one-line of non-test code were changed to accommodate initial deployment of pytest in pelican/__init__.py: pytest makes repeated use of rescanning the Python code and __path__ is undefined during the 1st pass, hence new logic:

if "__path__" in globals():
    __path__ = extend_path(__path__, __name__)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant