      # 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'):
          for arg in item.get_marker('models').args:
              if not item.config.getoption("--%s" % arg) and not item.config.getoption("--all"):
                  pytest.skip("need --%s or --all option to run" % arg)
 
</s> remove         if opt in item.keywords and not item.config.getoption("--%s" % opt):
 </s> add         if opt in item.keywords and not getopt(opt):
            if not getopt(arg) and not getopt("all"):
      # 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'):
          for arg in item.get_marker('models').args:
            if not getopt(arg) and not getopt("all"):
                  pytest.skip("need --%s or --all option to run" % arg)
keep keep keep keep replace 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