swh.provenance.pytest_plugin module#

swh.provenance.pytest_plugin.swh_provenance(swh_provenance_config)[source]#
class swh.provenance.pytest_plugin.ProvenanceServerProcess(config, *args, **kwargs)[source]#

Bases: Process

run()[source]#

Method to be run in sub-process; can be overridden in sub-class

start(*args, **kwargs)[source]#

Start child process

class swh.provenance.pytest_plugin.StatsdServer[source]#

Bases: object

new_datagram#

Woken up every time a datagram is added to self.datagrams.

close()[source]#
swh.provenance.pytest_plugin.provenance_statsd_server()[source]#
swh.provenance.pytest_plugin.provenance_grpc_backend_implementation(request)[source]#
swh.provenance.pytest_plugin.provenance_database_and_graph(tmpdir_factory)[source]#
swh.provenance.pytest_plugin.provenance_grpc_server_config(provenance_grpc_backend_implementation, provenance_statsd_server, provenance_database_and_graph)[source]#
swh.provenance.pytest_plugin.provenance_grpc_server_process(provenance_grpc_server_config, provenance_statsd_server)[source]#
swh.provenance.pytest_plugin.provenance_grpc_server_started(provenance_grpc_server_process)[source]#
swh.provenance.pytest_plugin.provenance_grpc_stub(provenance_grpc_server)[source]#
swh.provenance.pytest_plugin.provenance_grpc_server(provenance_grpc_server_started)[source]#