MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / container

Function container

docker-image/test/test_image_foundations.py:7–17  ·  view source on GitHub ↗
(client, image)

Source from the content-addressed store, hash-verified

5
6@pytest.fixture(scope="module", autouse=True)
7def container(client, image):
8 container = client.containers.run(
9 image.id,
10 name="test_container",
11 detach=True,
12 tty=True,
13 entrypoint="sh",
14 command="-"
15 )
16 yield container
17 container.remove(force=True)
18
19def test_current_user_is_node(host):
20 assert host.user().name == "node"

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected