How to run the CustomTimeInputFormatsTests unit test?

2024-12-09 Thread Arthur Pemberton
I've read through https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/ and I'm still uncertain how to properly run it. As far as I can tell, tests decorated with `@translation.override(None)` do not get run when using `./runtests.py` Even using `./runtests.py

Re: How to run the CustomTimeInputFormatsTests unit test?

2024-12-09 Thread Arthur Pemberton
I've submitted https://code.djangoproject.com/ticket/35986 If I'm missing something, please let me know. Arthur Pemberton On Monday, December 9, 2024 at 5:12:57 AM UTC-5 Bendegúz Csirmaz wrote: > Yes you're right, it's not executed for me either. > > On Monday, 9 December 2024 at 17:53:16 UTC+

Re: Use of TIME_INPUT_FORMATS in TimeField

2024-12-09 Thread Arthur Pemberton
As further follow up on this, as far as I can tell, the relevant unit test does not run, seemingly due to the use of `translation.override(None)` Removing, that, and running the test `./runtests.py forms_tests.tests.test_input_formats.CustomTimeInputFormatsTests.test_timeField` results in the

Re: Use of TIME_INPUT_FORMATS in TimeField

2024-12-09 Thread Arthur Pemberton
Adam, Up until now, I've only been reading the test. Now that I actually tried running the test, it does not get discovered by the testing system (without modifications to test_input_formats.py) and when I do get the test to run, it fails. I used tag "5.1.4" to get the unit tests. Arthur On

Re: How to run the CustomTimeInputFormatsTests unit test?

2024-12-09 Thread Bendegúz Csirmaz
Yes you're right, it's not executed for me either. On Monday, 9 December 2024 at 17:53:16 UTC+8 Arthur Pemberton wrote: > I've read through > https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/ > > and I'm still uncertain how to properly run it. > > As far as

Re: Use of TIME_INPUT_FORMATS in TimeField

2024-12-09 Thread zaw naing
hello I'm new to Django Developer anyone can share learning document? On Mon, Dec 9, 2024 at 5:03 PM Arthur Pemberton wrote: > Adam, > > Up until now, I've only been reading the test. Now that I actually tried > running the test, it does not get discovered by the testing system (without > modifi