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)

Alias for field number 0


Alias for field number 2


Alias for field number 3


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


return relevant __dir__ info for obj


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.


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