Skip to content

Code Snippets

Estimated time to read: 2 minutes

A collection of code snippets available on GitLab, which support the tutorial journey.

Snippet Description Tutorial
00-simple-example-test A basic code example and its test test
01-test-module-diy Use a test module for the test test
02-unittest-testcase Convert the test to a unittest test case unittest
03-unittest-boilerplate-asserts Use boilerplate assert functions unittest
04-pytest-assertion-error The same test, simpler, with pytest (error demo) pytest
05-pytest-parametrize Cleaner tests, use a test matrix with pytest pytest
06-doctest-modules Tests written in a function docstring doctest
07-behave-bdd Gherkin feature file and generated steps behave
08-behave-bdd-outline Test matrix example implemented with behave behave