File: multiparam.py

package info (click to toggle)
python-bottle-cork 0.12.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 936 kB
  • sloc: python: 6,862; makefile: 4
file content (26 lines) | stat: -rw-r--r-- 421 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26



# content of conftest.py
import pytest

class A(object):
    pass

@pytest.fixture
def base():
    print 'INST A'
    return A()

@pytest.fixture(params=["merlinux.eu", "mail.python.org"])
def smtp(request, base):
    print request.param
    return base

@pytest.fixture(params=['user', 'admin', None])
def auth_status(request, base):
    return base


def test_nyan(smtp, auth_status):
    assert smtp == auth_status