INNER CODE UNIT · Python

test_valid_fixture_accepted

onedr0p/cluster-template · template/scripts/test_validate.py:39

def test_valid_fixture_accepted(fixture: Path):
    load(str(fixture))


@pytest.mark.parametrize("fixture", INVALID, ids=lambda p: p.stem)
def test_invalid_fixture_rejected(fixture: Path):
    with pytest.raises(ConfigError):
        load(str(fixture))


def _load_raw(raw: dict) -> Config:
    try:
        return Config.model_validate(raw)
    except ValidationError as e:
        raise ConfigError(format_errors(e)) from None


def test_host_bits_error_suggests_network_address():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…