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

feat: add feature to pad iteration number #89

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

karrukola
Copy link

This change addresses the discussion in issue #87.

@karrukola
Copy link
Author

karrukola commented Mar 5, 2025

Submitting logic for review, if OK, e.g. usage of f-strings does not cause problems, I would add the tests:

  • When padding is given and the number of repetions is less than 10, then no padding is applied
  • When padding is set to 0 and the number of repetitions is 10, then the test names are 01, 02...
  • When padding is set to " " and the number of repetitions is 10, then the test names are 1, 2...
  • When padding is set to "" (emtpy string) and the number of repetitions is 10, then no padding is applied
  • When padding is set to two characters, then a warning is emitted and no padding is applied

When running tox, all Python 3.7 jobs fail, it must be the installation on my machine; I get the same results with a clean checkout of main.

Signed-off-by: Filippo Carra <[email protected]>
Signed-off-by: Filippo Carra <[email protected]>
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.

1 participant