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

Create RequestsSessionNetwork #226

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Create RequestsSessionNetwork #226

wants to merge 3 commits into from

Commits on Aug 25, 2017

  1. Create RequestsSessionNetwork

    This class is the same as the former `DefaultNetwork` class,
    except that it accepts an optional `session` constructor
    parameter, for clients to specify a session of their choosing
    rather than having it constructed automatically.
    
    `DefaultNetwork` is aliased to `RequestsSessionNetwork`, for
    backwards-compatibility.
    
    This enables the boxsdk's testing framework to start using the
    `betamax` to record real network calls and responses. Although
    we currently only add one such test, this is a potential
    alternative to mock-box functional tests in the future.
    
    This also allows for dependents of boxsdk to write `betamax`
    tests as well.
    jmoldow committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    739c095 View commit details
    Browse the repository at this point in the history
  2. Add pytest plugin

    Move the betamax fixtures to an installable pytest plugin, so
    that dependent applications can also make use of them.
    jmoldow committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    9deb303 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d90dd57 View commit details
    Browse the repository at this point in the history