arrow icon indicating copy to clipboard operation
arrow copied to clipboard

More Detailed Test Cases For Locales

Open anishnya opened this issue 4 years ago • 15 comments

Feature Request

Many locales have the bare minimum when it comes to test cases. While I understand it can be tedious and repetitive to write out test cases that appear the same for multiple timeframe units, I still believe we should make it necessary. If we do ever make changes to any locale files, which seems to be more often as of late, we want to ensure we aren't being mislead by passing test cases, when there could potentially be some underlying bug/edge case (so often the case with locales) that we'd be missing.

anishnya avatar Aug 14 '21 08:08 anishnya

Hi! @akotha7 and I would like to work on this. We aim to improve and increase testing for at least 5 different locales. Please let us know if there is anything we should know.

neelrpatel avatar Nov 29 '21 04:11 neelrpatel

Hi @neelrpatel! Both you and @akotha7 are welcome to work on this issue. For this issue, what we want to see is for locales, such as Finnish, that have multiple variations on each timeframe unit, we would like our test cases to cover all the variations within those timeframe units (i.e all variations of the strings for seconds, hours etc). Currently, many of the test cases for these locales only cover the variation for one timeframe unit. Please feel free to ask any questions you have along the way.

anishnya avatar Nov 29 '21 20:11 anishnya

@anishnya Besides Finnish, are there any particular locales that you prefer we add more testing to?

neelrpatel avatar Dec 10 '21 01:12 neelrpatel

@anishnya I've created a PR for additional testing on locales with multiple timeframe variations. The PR description lists which locales I've increased testing on.

neelrpatel avatar Dec 12 '21 09:12 neelrpatel

Hey @neelrpatel. Sorry for just seeing this, but the PR you submitted does give us the coverage of the locales that we wanted. I'll take a closer a look at the PR later today and approve it.

anishnya avatar Dec 12 '21 10:12 anishnya

@anishnya Awesome, thanks!

neelrpatel avatar Dec 12 '21 22:12 neelrpatel

I also want to work on the create more tests for locales. Is it okay I create a new PR about this problem later today? I noticed that this issue is already closed.

kaiyang-code avatar Dec 16 '21 19:12 kaiyang-code

Hi! @anishnya. In particular, I have noticed that some locales have fewer test cases than others. I plan to expand test cases for those locales

kaiyang-code avatar Dec 16 '21 20:12 kaiyang-code

Hi @kaiyang-code, yes feel free to open a PR on the issue and I'll be more than happy to take a look at it. Let us know if you have any questions.

anishnya avatar Dec 16 '21 20:12 anishnya

@anishnya I am ready to create a PR. I read that I have to update documentation? Could you elaborate on which documentation should I update? Thank you in advance!

kaiyang-code avatar Dec 16 '21 22:12 kaiyang-code

For this PR there wouldn’t need to be any additional documentation.

On Thu, Dec 16, 2021 at 5:17 PM kaiyang-code @.***> wrote:

@anishnya https://github.com/anishnya I am ready to create a PR. I read that I have to update documentation? Could you elaborate on which documentation should I update? Thank you in advance!

— Reply to this email directly, view it on GitHub https://github.com/arrow-py/arrow/issues/1022#issuecomment-996236733, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANKPCQOGEJYPJAHN33WEGPDURJQQ3ANCNFSM5CE3PBIQ . You are receiving this because you were mentioned.Message ID: @.***>

anishnya avatar Dec 16 '21 23:12 anishnya

@anishnya Got it, I just create a PR #1076

kaiyang-code avatar Dec 16 '21 23:12 kaiyang-code

I submitted some additional test cases, as well.

ashleybellomy avatar Feb 07 '22 21:02 ashleybellomy