(client, image)
| 5 | |
| 6 | @pytest.fixture(scope="module", autouse=True) |
| 7 | def 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 | |
| 19 | def test_current_user_is_node(host): |
| 20 | assert host.user().name == "node" |