skip to navigation
skip to content

pytest-paste-config 0.1

Allow setting the path to a paste config file

pytest plugin to all passing the path to a paste config file

Usage

install/update via:

pip install -U pytest-paste-config

and to run tests type:

py.test

Rationale

This plugin is written purely so that I can do:

def test_connection(pytestconfig):
engine = engine_from_config(pytestconfig.paste_file) models.Base.metadata.create_all(engine) # some test code…

and then run:

py.test –paste-file testing.ini
 
File Type Py Version Uploaded on Size
pytest-paste-config-0.1.tar.gz (md5) Source 2013-09-18 1KB