  
  
  def pytest_runtest_setup(item):
      for opt in ['models', 'vectors', 'slow']:
          if opt in item.keywords and not item.config.getoption("--%s" % opt):
              pytest.skip("need --%s option to run" % opt)
  
      # Check if test is marked with models and has arguments set, i.e. specific
      # language. If so, skip test if flag not set.
      if item.get_marker('models'):
 
</s> remove             if not item.config.getoption("--%s" % arg) and not item.config.getoption("--all"):
 </s> add             if not getopt(arg) and not getopt("all"):
        if opt in item.keywords and not getopt(opt):
  
  
  def pytest_runtest_setup(item):
      for opt in ['models', 'vectors', 'slow']:
        if opt in item.keywords and not getopt(opt):
              pytest.skip("need --%s option to run" % opt)
  
      # Check if test is marked with models and has arguments set, i.e. specific
      # language. If so, skip test if flag not set.
      if item.get_marker('models'):
keep keep keep keep replace keep keep keep keep keep
 When calling getoption() in conftest.py, pass a default option (#2709)

* When calling getoption() in conftest.py, pass a default option

This is necessary to allow testing an installed spacy by running:

  pytest --pyargs spacy

* Add contributor agreement 
spacy/tests/conftest.py