Skip to content

jobqueue monthly #2634

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 5 commits into from
Aug 26, 2021
Merged

Conversation

iota-008
Copy link
Contributor

@iota-008 iota-008 commented Aug 19, 2021

Checklist for PRs

  • Added .. versionadded:: version, .. versionchanged:: version or .. deprecated:: version to the docstrings for user-facing changes (for methods/class descriptions, arguments and attributes)
  • Created new or adapted existing unit tests
  • Added myself alphabetically to AUTHORS.rst (optional)

Closes #2627

@Bibo-Joshi Bibo-Joshi self-requested a review August 20, 2021 08:24
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! I left a comment.
Apart from that, please have a look at the failing tests - the error messages should tell you what can be improved. If you can't see the error messages due to access stuff, please leave a comment.
Also, the tests need to be adapted. They are located at tests/test_jobqueue.py. If you're having troubles with the unit tests or if you're new to pytest, feel free to ask for help :)

Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

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

Also I noticed that the docstring should be updated to state the changes. Please use the .. versionchanged:: directive (see here for an example) and explain in 2-3 sentences that

  1. the day_is_strict argument was removed
  2. instead one can pass -1 to the day parameter to make the job run on the last day of the month.

Also update the docstring of the day parameter

@Bibo-Joshi Bibo-Joshi merged commit 209642b into python-telegram-bot:v14 Aug 26, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants