Why are some Django methods PascalCase and others snake_case?
Asked Answered
D

1

8

As far as I know, the convention is to use snake_case for method names, so why are some methods in Django PascalCase, e.g. Django's TestCase Class?

Dimissory answered 23/2, 2019 at 10:59 Comment(0)
Z
16

Django's Testing framework inherits from Python's unittest module. That, in turn, is heavily based on the Java JUnit framework. Java uses PascalCase naming conventions; when the code was ported to Python the names were kept.

Ziwot answered 23/2, 2019 at 11:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.