fasjson.tests package

Subpackages

Submodules

fasjson.tests.conftest module

class fasjson.tests.conftest.GSSAwareClient(*args, **kwargs)[source]

Bases: FlaskClient

open(*args, **kwargs)[source]

Generate an environ dict from the given arguments, make a request to the application using it, and return the response.

Parameters:
  • args – Passed to EnvironBuilder to create the environ for the request. If a single arg is passed, it can be an existing EnvironBuilder or an environ dict.

  • buffered – Convert the iterator returned by the app into a list. If the iterator has a close() method, it is called automatically.

  • follow_redirects – Make additional requests to follow HTTP redirects until a non-redirect status is returned. TestResponse.history lists the intermediate responses.

Changed in version 2.1: Removed the as_tuple parameter.

Changed in version 2.0: The request input stream is closed when calling response.close(). Input streams for redirects are automatically closed.

Changed in version 0.5: If a dict is provided as file in the dict for the data parameter the content type has to be called content_type instead of mimetype. This change was made for consistency with werkzeug.FileWrapper.

Changed in version 0.5: Added the follow_redirects parameter.

fasjson.tests.conftest.anon_client(app)[source]
fasjson.tests.conftest.app(fixture_dir)[source]
fasjson.tests.conftest.client(app, gss_env)[source]
fasjson.tests.conftest.fixture_dir(test_dir)[source]
fasjson.tests.conftest.gss_env(fixture_dir)[source]
fasjson.tests.conftest.gss_user(gss_env, mocker)[source]
fasjson.tests.conftest.mock_ipa_client(mocker)[source]
fasjson.tests.conftest.test_dir()[source]

Module contents