main plugin module

interactive.plugin.pytest_collection_modifyitems(session, config, items)[source]

called after collection has been performed, may filter or re-order the items in-place.

class interactive.plugin.Package(name, path, node, parent)
name

Alias for field number 0

node

Alias for field number 2

parent

Alias for field number 3

path

Alias for field number 1

interactive.plugin.gen_nodes(item, cache, root_name)[source]

generate all parent objs of this node up to the root/session

interactive.plugin.dirinfo(obj)[source]

return relevant __dir__ info for obj

interactive.plugin.tosymbol(ident)[source]

Replace illegal python characters with underscores in the provided string identifier and return

class interactive.plugin.FuncCollection(funcitems=None)[source]

A selection of functions

class interactive.plugin.TestTree(funcitems, termrep, shell, selection, config)[source]

A tree of all collected tests

set_cache_items(key, testset)[source]

Enter test items for the given name into the cache under the provided key. If bool(testset) == False delete the entry.

class interactive.plugin.TestSet(tree, path, indices=None, params=())[source]

Represent a pytest node/item test set for use as a tab complete-able object in ipython. An internal reference is kept to the pertaining pytest Node and hierarchical lookups are delegated to the containing TestTree.

params

Return a CallSpecParameters object who’s instance variables are named according to available ‘callspec parameters’ in child nodes and who’s values are TestSets corresponding to tests which contain those parameters