How to run the CustomTimeInputFormatsTests unit test?

18 views
Skip to first unread message

Arthur Pemberton

unread,
Dec 9, 2024, 4:53:16 AM (13 days ago) Dec 9
to Django developers (Contributions to Django itself)
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 forms_tests.tests.test_input_formats.CustomTimeInputFormatsTests.test_timeField` results in an error:

TypeError: CustomTimeInputFormatsTests.test_timeField() missing 1 required positional argument: 'self'

Arthur Pemberton

Bendegúz Csirmaz

unread,
Dec 9, 2024, 5:12:57 AM (13 days ago) Dec 9
to Django developers (Contributions to Django itself)
Yes you're right, it's not executed for me either.

Arthur Pemberton

unread,
Dec 9, 2024, 5:28:03 AM (13 days ago) Dec 9
to Django developers (Contributions to Django itself)
I've submitted https://code.djangoproject.com/ticket/35986 

If I'm missing something, please let me know.

Arthur Pemberton

Reply all
Reply to author
Forward
0 new messages