shell-cell 1.7.1

Shell-Cell. CLI app to spawn and manage containerized shell environments
1
2
3
4
5
6
7
8
9
10
11
12
13
import subprocess

import pytest

from scell import get_scell_bin


@pytest.fixture(autouse=True)
def stop_containers():
    yield
    scell_bin = get_scell_bin()
    result = subprocess.run([scell_bin, "stop", "-s"], check=False)
    assert result.returncode == 0, f"'scell stop' failed with exit code {result.returncode}"