Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions doc/source/development/code_style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,38 @@ For example:
foo.__class__


Error message capturing (in tests)
----------------------------------

There are times when writing a test case, a statement/function/method can raise
multiple error messages, we should join the diffrent error messages
instead of having one giant string.

For example:

**Good:**

.. code-block:: python

msg = "|".join(
[
"foo",
"bar",
"baz"
]
)

**Bad:**

.. code-block:: python

msg = (
"foo|"
"bar|"
"baz"
)


String formatting
=================

Expand Down