chariots.testing
module that provides some testing utils. There are two Testing clients that allow you to test your servers (pipelines
and op_store) without having to actually start the servers in the test.
-
class
chariots.testing.
TestPipelinesClient
(app: chariots.pipelines.pipelines_server.PipelinesServer)[source]
Bases: chariots.pipelines.pipelines_client.AbstractPipelinesClient
mock up of the client to test a full app without having to create a server
-
__init__
(app: chariots.pipelines.pipelines_server.PipelinesServer)[source]
Initialize self. See help(type(self)) for accurate signature.
-
class
chariots.testing.
TestOpStoreClient
(path, saver=None)[source]
Bases: chariots.op_store._op_store_client.BaseOpStoreClient
helper class to have a client without launching the server
-
__init__
(path, saver=None)[source]
Initialize self. See help(type(self)) for accurate signature.
-
post
(route, arguments_json)[source]
posts request the backend