Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make zope a semi-optional test dependency #685

Merged
merged 4 commits into from Sep 3, 2020

Commits on Sep 2, 2020

  1. Make zope a semi-optional test dependency

    For the admittedly small number of people who don't care about support
    for `zope.interface`, it is unnecessary extra work to support even a
    test-only dependency on `zope`.
    
    The `zope`-specific tests are relatively contained, however, and with
    judicious use of pytest fixtures, we can make it so that `zope` is not a
    required dependency when skipping tests marked with `pytest.mark.zope`.
    
    This allows users to test everything but the `zope`-specific tests with
    no `zope` dependency with:
    
    $ TOX_AP_TEST_EXTRAS="tests_no_zope" tox -e <env> -- -m 'not zope'
    pganssle committed Sep 2, 2020
    Copy the full SHA
    4cf1da2 View commit details
    Browse the repository at this point in the history
  2. Auto-skip zope tests if zope.interface not present

    This is a little more error-prone, but it's much more convenient to
    invoke, since it doesn't involve skipping the "zope" marker.
    pganssle committed Sep 2, 2020
    Copy the full SHA
    74e8589 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    5f696a0 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    2df0fef View commit details
    Browse the repository at this point in the history