Skip to content

Fix: [Bug] missing files for tests - #2211

Open
goransh-walia wants to merge 1 commit into
PyCalendar:mainfrom
goransh-walia:fix/issue-1708-778
Open

goransh-walia wants to merge 1 commit into
PyCalendar:mainfrom
goransh-walia:fix/issue-1708-778

Conversation

@goransh-walia

Copy link
Copy Markdown

Linked issue

Description

When running tests from PyPI source distributions, scripts/generate_windows_to_olson_mapping.py is not included, causing test_generate_windows_to_olson_mapping.py to fail with a FileNotFoundError.

This PR updates src/icalendar/tests/test_generate_windows_to_olson_mapping.py:

  • Defines a module-level GENERATOR constant for the script path.
  • Adds pytestmark = pytest.mark.skipif(not GENERATOR.exists(), reason="generator script not found") to skip tests when the generator script is absent.
  • Replaces duplicate inline script path definitions in test_generator_pins_mapping_to_latest_cldr_commit and test_generator_rejects_invalid_cldr_version with GENERATOR.

Checklist

  • I added a change log entry, following the instructions in all subsections under Change log requirements.
  • I followed icalendar's Artificial intelligence policy and disclosed my Responsible AI use in my commit messages, if applicable.
  • I added or updated tests, if applicable.
  • I ran and ensured all tests pass locally by following Run tests.
  • I added or edited documentation as necessary, both as docstrings to be rendered in the API documentation and narrative documentation, following the Style guide.

Additional information

Syntax check passed on the changed file(s). The full test suite was not run locally, so I'm relying on CI to confirm.

AI-assisted.

@github-actions github-actions Bot added the ai-suspicion This contribution is possibly created with lots of AI help without enough human understanding. label Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the pull request, @goransh-walia! A maintainer will review it shortly.

@github-actions

Copy link
Copy Markdown
Contributor

One or more PR-quality checks did not pass. Review the PR Quality Checks summary in the workflow run for the failed checks and their details, then make any necessary updates.

Checklist items may remain unchecked while work is in progress. Please tick each item as you complete it.

If you used AI assistance, follow the project's Responsible AI use policy and provide the required disclosures.

@github-actions

Copy link
Copy Markdown
Contributor

Mixed activity

Activity patterns show a mix of organic and automated signals.

View full analysis →

Evidence
  • Multiple forks: 6 repositories forked in a single 24-hour window

This is an automated analysis by AgentScan

@github-actions github-actions Bot added the agentscan:needs-review AgentScan flagged this item for review because it has mixed signals label Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentscan:needs-review AgentScan flagged this item for review because it has mixed signals ai-suspicion This contribution is possibly created with lots of AI help without enough human understanding.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] missing files for tests

1 participant