ServiceBackendTest

ServiceBackendTest(self, *, data_dir, tmpdir, worker_id, **kw)

Parent class to use for backend test configuration if backend requires a Docker container(s) in order to run locally.

Attributes

Name Description
data_volume Data volume defined in compose.yaml corresponding to backend.
service_name Name of service defined in compose.yaml corresponding to backend.
test_files Returns an iterable of test files to load into a Docker container before testing.

Methods

Name Description
preload Use docker compose cp to copy all files from test_files into a container.

preload

preload()

Use docker compose cp to copy all files from test_files into a container.

service_name and data_volume are set as class-level variables.

Back to top