By using the pytest.mark helper you can easily set metadata on your test functions. There are some builtin markers, for example:
It’s easy to create custom markers or to apply markers to whole test classes or modules. See Working with custom markers for examples which also serve as documentation.
Marks can only be applied to tests, having no effect on fixtures.