File: conftest.py

package info (click to toggle)
python-flaky 3.3.0-1~bpo8%2B1
  • links: PTS
  • area: main
  • in suites: jessie-backports
  • size: 388 kB
  • sloc: python: 1,947; makefile: 6
file content (11 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
# coding: utf-8

from __future__ import unicode_literals


def pytest_generate_tests(metafunc):
    """
    Parameterize a fixture named 'dummy_list' with an empty list
    """
    if 'dummy_list' in metafunc.fixturenames:
        metafunc.parametrize("dummy_list", [[]])