~corey.bryant/ubuntu/utopic/python-pyscss/mir

« back to all changes in this revision

Viewing changes to conftest.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-09-24 21:54:24 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: package-import@ubuntu.com-20140924215424-yqmn0dajgwcamfxw
Tags: upstream-1.2.1
ImportĀ upstreamĀ versionĀ 1.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""py.test plugin configuration."""
 
2
 
 
3
def pytest_addoption(parser):
 
4
    """Add options for filtering which file tests run.
 
5
 
 
6
    This has to be done in the project root; py.test doesn't (and can't)
 
7
    recursively look for conftest.py files until after it's parsed the command
 
8
    line.
 
9
    """
 
10
    parser.addoption('--include-ruby',
 
11
        help='run tests imported from Ruby and sassc, most of which fail',
 
12
        action='store_true',
 
13
        dest='include_ruby',
 
14
    )
 
15
 
 
16
    parser.addoption('--test-file-filter',
 
17
        help='comma-separated regexes to select test files',
 
18
        action='store',
 
19
        type='string',
 
20
        dest='test_file_filter',
 
21
        default=None,
 
22
    )