.. _Python tests: Python Tests ============ The Python tests are located in ``pyddg/testing/tests/ddg/`` (excluding the Blender specific tests, see :doc:`blender_tests`). Their default test configuration is ``testing/utils/pytest-conf-python.ini``. Naming Policies --------------- To run tests with pytest, you need to name them correctly: - test **files** and **functions** should be either prefixed with ``test_`` - test **classes** (classes in test files that group tests together) must be prefixed with ``Test`` Examples -------- .. code-block:: python # test_stuff.py def test_something(): assert 2 == 2 For more examples, look through some test files in ``testing/tests/ddg``.