Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Assign SubscriptStore AttributeLoad NameLoad attr Slice ListLoad FunctionDef arguments args defaults body Assign SubscriptStore AttributeLoad NameLoad attr Slice NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Return Dict decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam defaults body ImportFrom alias Return Call NameLoad NameLoad decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Call NameLoad Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ImportFrom alias Import alias Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad For NameStore SubscriptLoad NameLoad Index Str body Expr Call NameLoad Assign AttributeStore Call NameLoad attr Str Expr Call NameLoad decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ImportFrom alias Return Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Str SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Index Num Assign SubscriptStore Call AttributeLoad AttributeLoad NameLoad attr attr Index Str NameStore Call NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Lambda arguments args defaults NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad Dict NameLoad Return Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias alias ImportFrom alias Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num Expr Call NameLoad SubscriptLoad NameLoad Slice Num Call NameLoad NameLoad Lambda arguments args defaults NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str If CompareIn Str AttributeLoad NameLoad attr body ImportFrom alias ImportFrom alias Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Index Num Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Slice Num For TupleStore NameStore NameStore Call NameLoad Call NameLoad keyword NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Str keyword Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Return Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body ImportFrom alias If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Index Num Expr Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam NameParam defaults NameLoad Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Import alias Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad decorator_list NameLoad ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad NameLoad ImportFrom alias Assign NameStore Call NameLoad keyword Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call NameLoad Num Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore BinOpAdd Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore BoolOpOr NameLoad Call NameLoad NameLoad Str NameLoad Assign NameStore BoolOpOr NameLoad Call NameLoad NameLoad Str NameLoad If BoolOpAnd Call NameLoad NameLoad Str Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Dict Str Str Str NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Index Call NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias Assign AttributeStore NameLoad attr Dict Str Call NameLoad keyword Call NameLoad Assign AttributeStore NameLoad attr Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias Assign AttributeStore NameLoad attr Dict Str Call NameLoad keyword Call NameLoad Assign AttributeStore NameLoad attr Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad
N/A N/A 

Fixture dependencies
--------------------

.. graphviz::

   digraph kotti_fixtures {
      "allwarnings";
      "app" -> "webtest";
      "config" -> "db_session";
      "config" -> "depot_tween";
      "config" -> "dummy_request";
      "config" -> "events";
      "config" -> "workflow";
      "connection" -> "content";
      "connection" -> "db_session";
      "content" -> "db_session";
      "custom_settings" -> "connection";
      "custom_settings" -> "unresolved_settings";
      "db_session" -> "app";
      "db_session" -> "browser";
      "db_session" -> "filedepot";
      "db_session" -> "root";
      "depot_tween" -> "webtest";
      "dummy_mailer" -> "app";
      "dummy_mailer";
      "dummy_request" -> "depot_tween";
      "events" -> "app";
      "depot_tween" -> "filedepot";
      "depot_tween" -> "mock_filedepot";
      "mock_filedepot";
      "depot_tween" -> "no_filedepots";
      "settings" -> "config";
      "settings" -> "content";
      "setup_app" -> "app";
      "setup_app" -> "browser";
      "unresolved_settings" -> "settings";
      "unresolved_settings" -> "setup_app";
      "workflow" -> "app";
   }

 N/A warnings datetime datetime pytest fixture mock MagicMock kotti testing image_asset N/A N/A N/A N/A N/A  Return an image file  N/A N/A N/A testing asset sendeschluss.jpg N/A fixture image_asset2 N/A N/A N/A N/A N/A  Return another image file  N/A N/A N/A testing asset logo.png N/A fixture allwarnings N/A N/A request N/A N/A N/A save_filters N/A N/A warnings filters N/A N/A N/A N/A warnings filters N/A N/A restore N/A N/A N/A N/A N/A N/A N/A warnings filters N/A save_filters N/A N/A N/A N/A request addfinalizer restore N/A fixture custom_settings N/A N/A N/A N/A N/A  This is a dummy fixture meant to be overriden in add on package's
    ``conftest.py``.  It can be used to inject arbitrary settings for third
    party test suites.  The default settings dictionary will be updated
    with the dictionary returned by this fixture.

    This is also a good place to import your add on's ``resources`` module to
    have the corresponding tables created during ``create_all()`` in
    :func:`kotti.tests.content`.

    :result: settings
    :rtype: dict
     N/A N/A N/A N/A fixture scope session unresolved_settings N/A N/A custom_settings N/A N/A kotti conf_defaults kotti.testing testing_db_url N/A settings N/A N/A conf_defaults copy N/A N/A settings N/A kotti.secret secret N/A N/A settings N/A kotti.secret2 secret2 N/A N/A settings N/A kotti.populators kotti.testing._populator N/A N/A settings N/A sqlalchemy.url N/A testing_db_url N/A N/A N/A settings update custom_settings N/A settings N/A N/A fixture scope session settings N/A N/A unresolved_settings N/A N/A kotti _resolve_dotted N/A N/A _resolve_dotted unresolved_settings N/A N/A fixture scope session config N/A N/A request settings N/A N/A N/A  returns a Pyramid `Configurator` object initialized
        with Kotti's default (test) settings.
     pyramid testing kotti security N/A config N/A N/A testing setUp settings settings N/A N/A N/A config include pyramid_chameleon N/A N/A N/A config add_default_renderers N/A N/A N/A request addfinalizer N/A security reset N/A N/A N/A request addfinalizer N/A testing tearDown N/A config N/A fixture connection N/A N/A custom_settings N/A N/A N/A  sets up a SQLAlchemy engine and returns a connection to the database.
    The connection string used for testing can be specified via the
    ``KOTTI_TEST_DB_STRING`` environment variable.  The ``custom_settings``
    fixture is needed to allow users to import their models easily instead of
    having to override the ``connection``.
     sqlalchemy create_engine kotti DBSession kotti metadata kotti.resources _adjust_for_engine kotti.testing testing_db_url N/A engine N/A create_engine N/A testing_db_url N/A N/A _adjust_for_engine engine N/A connection N/A N/A engine connect N/A N/A N/A N/A DBSession registry clear N/A N/A N/A DBSession configure bind connection N/A N/A metadata bind engine N/A connection N/A N/A fixture scope session content N/A N/A connection settings N/A N/A N/A  sets up some default content using Kotti's testing populator.
     transaction commit kotti metadata kotti.resources get_root N/A N/A N/A metadata drop_all N/A connection engine N/A N/A N/A metadata create_all N/A connection engine zope.configuration xmlconfig N/A kotti N/A N/A N/A xmlconfig file workflow.zcml kotti execute True N/A populate N/A settings N/A kotti.populators N/A N/A N/A populate N/A N/A N/A get_root path / N/A N/A commit N/A N/A fixture scope session db_session N/A N/A config content connection request N/A N/A N/A  returns a db session object and sets up a db transaction
        savepoint, which will be rolled back after the test.
     transaction abort N/A trans N/A N/A connection begin N/A N/A N/A request addfinalizer N/A trans rollback N/A N/A N/A request addfinalizer abort kotti DBSession N/A N/A DBSession N/A fixture dummy_request N/A N/A config request monkeypatch N/A N/A N/A  returns a dummy request object after registering it as
        the currently active request.  This is needed when
        `pyramid.threadlocal.get_current_request` is used.
     kotti.testing DummyRequest N/A N/A user N/A request keywords N/A N/A N/A N/A monkeypatch setattr DummyRequest authenticated_userid N/A N/A N/A N/A request keywords N/A user args N/A 0 N/A N/A N/A N/A N/A config manager get N/A request dummy_request N/A DummyRequest N/A dummy_request N/A fixture dummy_mailer N/A N/A monkeypatch N/A N/A pyramid_mailer.mailer DummyMailer N/A mailer N/A DummyMailer N/A N/A N/A monkeypatch setattr kotti.message.get_mailer N/A N/A N/A N/A mailer N/A mailer N/A fixture events N/A N/A config request N/A N/A N/A  sets up Kotti's default event handlers.
     kotti.events clear N/A N/A N/A config include kotti.events N/A N/A N/A request addfinalizer clear N/A config N/A fixture setup_app N/A N/A unresolved_settings filedepot N/A N/A kotti base_configure N/A config N/A base_configure N/A unresolved_settings N/A N/A N/A config make_wsgi_app N/A fixture app N/A N/A workflow db_session dummy_mailer events setup_app N/A N/A N/A setup_app N/A fixture browser N/A N/A db_session request setup_app N/A N/A N/A  returns an instance of `zope.testbrowser`.  The `kotti.testing.user`
        pytest marker (or `pytest.mark.user`) can be used to pre-authenticate
        the browser with the given login name: `@user('admin')`.
     wsgi_intercept add_wsgi_intercept zope_testbrowser kotti.testing BASE_URL N/A N/A host port N/A N/A N/A BASE_URL split : N/A -2 N/A N/A add_wsgi_intercept N/A host N/A 2 N/A int port N/A N/A N/A N/A setup_app N/A browser N/A N/A zope_testbrowser WSGI_Browser N/A BASE_URL / N/A N/A user N/A request keywords N/A pyramid.security remember pyramid.testing DummyRequest N/A login N/A N/A N/A N/A request keywords N/A user args N/A 0 N/A environ N/A dict HTTP_HOST N/A host N/A 2 N/A N/A _ value N/A remember N/A DummyRequest environ environ login N/A N/A N/A cookie _ N/A N/A value split ; 1 N/A N/A name value N/A N/A cookie split = N/A N/A name N/A browser cookies N/A N/A N/A N/A browser cookies N/A name N/A N/A N/A N/A browser cookies create name N/A N/A value strip " path / N/A browser N/A fixture root N/A N/A db_session N/A N/A N/A  returns Kotti's 'root' node.
     kotti.resources get_root N/A N/A get_root N/A fixture webtest N/A N/A app monkeypatch request filedepot dummy_mailer N/A N/A webtest TestApp N/A N/A user N/A request keywords N/A N/A login N/A N/A N/A N/A request keywords N/A user args N/A 0 N/A N/A N/A monkeypatch setattr pyramid.authentication.AuthTktAuthenticationPolicy.unauthenticated_userid N/A N/A N/A self req N/A login N/A N/A TestApp app N/A fixture workflow N/A N/A config N/A N/A N/A  loads and activates Kotti's default workflow rules.
     zope.configuration xmlconfig N/A kotti N/A N/A N/A xmlconfig file workflow.zcml kotti execute True N/A fixture TestStorage N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self _storage N/A N/A N/A N/A N/A self _storage setdefault 0 N/A get N/A N/A self id N/A N/A N/A info N/A N/A self _storage N/A N/A int id StringIO StringIO N/A f N/A MagicMock wraps N/A StringIO N/A info N/A content N/A N/A N/A f seek 0 N/A N/A f public_url None N/A N/A f filename N/A info N/A filename N/A N/A f content_type N/A info N/A content_type N/A N/A f content_length N/A len N/A info N/A content N/A N/A f last_modified N/A datetime 2012 12 30 N/A f N/A create N/A N/A self content filename content_type N/A None None N/A N/A _id N/A N/A max N/A self _storage 1 N/A filename N/A filename N/A getattr content filename None N/A content_type N/A content_type N/A getattr content type None N/A N/A N/A hasattr content file N/A hasattr N/A content file read N/A N/A content N/A N/A N/A content file read N/A N/A N/A hasattr content read N/A N/A content N/A N/A content read N/A N/A N/A self _storage N/A _id N/A content filename content_type content filename content_type N/A _id N/A delete N/A N/A self id N/A N/A N/A N/A N/A self _storage N/A N/A int id N/A N/A depot_tween N/A N/A request config dummy_request N/A N/A N/A  Sets up the Depot tween and patches Depot's ``set_middleware`` to
    suppress exceptions on subsequent calls  depot.manager DepotManager kotti.filedepot TweenFactory kotti.filedepot uploaded_file_response kotti.filedepot uploaded_file_url N/A N/A N/A dummy_request __class__ uploaded_file_response uploaded_file_response N/A N/A N/A dummy_request __class__ uploaded_file_url uploaded_file_url N/A _set_middleware N/A DepotManager set_middleware N/A N/A TweenFactory None N/A config registry set_middleware_patched N/A N/A cls mw N/A N/A N/A N/A classmethod N/A N/A DepotManager set_middleware set_middleware_patched restore N/A N/A N/A N/A N/A N/A DepotManager set_middleware _set_middleware N/A N/A N/A N/A request addfinalizer restore N/A fixture mock_filedepot N/A N/A request depot_tween N/A N/A N/A  Configures a mock depot store for :class:`depot.manager.DepotManager`

    This filedepot is not integrated with dbsession.
    Can be used in simple, standalone unit tests.
     depot.manager DepotManager N/A N/A DepotManager _depots N/A mockdepot N/A MagicMock wraps N/A TestStorage N/A N/A DepotManager _default_depot mockdepot restore N/A N/A N/A N/A N/A N/A N/A DepotManager _clear N/A N/A N/A N/A request addfinalizer restore N/A fixture filedepot N/A N/A db_session request depot_tween N/A N/A N/A  Configures a dbsession integrated mock depot store for
    :class:`depot.manager.DepotManager`
     depot.manager DepotManager N/A N/A DepotManager _depots N/A filedepot N/A MagicMock wraps N/A TestStorage N/A N/A DepotManager _default_depot filedepot restore N/A N/A N/A N/A N/A N/A N/A db_session rollback N/A N/A N/A DepotManager _clear N/A N/A N/A N/A request addfinalizer restore N/A fixture no_filedepots N/A N/A db_session request depot_tween N/A N/A N/A  A filedepot fixture to empty and then restore DepotManager configuration
     depot.manager DepotManager N/A N/A DepotManager _depots N/A N/A N/A DepotManager _default_depot None restore N/A N/A N/A N/A N/A N/A N/A db_session rollback N/A N/A N/A DepotManager _clear N/A N/A N/A N/A request addfinalizer restore N/A fixture