LANGUAGE » PYTHON » PYTEST

Fixtures

Usage

Creating custom fixtures

python
import pytest

@pytest.fixture
def some_list():
  return [1, 2, 3]