##// END OF EJS Templates
comments: fix extracing auth_user from the passed in objects. Before if auth_user is empty we could relly on INT or STR passed in
comments: fix extracing auth_user from the passed in objects. Before if auth_user is empty we could relly on INT or STR passed in

File last commit:

r1:854a839a default
r3026:71b96937 stable
Show More
naming-conventions.rst
29 lines | 689 B | text/x-rst | RstLexer

Naming conventions

We found so far a few patterns emerging in our py.test fixtures. The naming conventions for those are documented on this page.

Utilities - _util

Used for fixtures which are used to ensure that the pre-conditions of the test are met. Usually it does not matter so much for the test how they achieve this. Most utilities will clean up automatically after themselves.

Use the suffix _util.

Page objects - {route_name}_page

Used as abstractions of pages.

Use the suffix _page and if possible use the route name as the prefix.