Purfe

Learn, create and have fun with Python

Category: Python

Pytest explained

Quick ref pytest will execute all the files of format test_* or *_test in the current directory and subdirectories. It requires the test function names to start with test. pytest -v for verbose output pytest -q, –quiet less verbose pytest…

Jinja templates: Basics

Basic Jinja templates syntax {% … %} Statements. Add control flow and looping inside the templates {{ … }} Expressions. Evaluate expression, variable or function call {# … #} Comments # … ## Line Statements {% raw %} {% endraw…

Back to top