FUN with Python
PEP 8
[flake8]
max-line-length = 99
exclude =
.git,
.venv,
venv,
__pycache__,
node_modules,
*/migrations/*Documentation
class FooTestCase(TestCase):
"""Test the Foo class in condition X"""
def test_my_method_when_bar_is_None(self):
"""
Test that my method asserts a FooException when bar is None
Steps:
* create a new Foo instance
* update foo.bar with None
* call foo.my_method()
* assert it raises a FooException
"""
passIndentation
Import
Test files
Last updated