MCPcopy Create free account
hub / github.com/cdgriffith/Box / unavailable

Method unavailable

test/test_coverage_paths.py:347–348  ·  view source on GitHub ↗
(cls, *args, **kwargs)

Source from the content-addressed store, hash-verified

345 def test_box_from_string_yaml_unavailable(self, monkeypatch):
346 # What from_file and Box look like without ruamel.yaml or PyYAML installed
347 def unavailable(cls, *args, **kwargs):
348 raise BoxError("yaml is unavailable on this system")
349
350 monkeypatch.setattr(from_file, "yaml_available", False)
351 monkeypatch.setattr(from_file, "YAMLError", False)

Callers

nothing calls this directly

Calls 1

BoxErrorClass · 0.90

Tested by

no test coverage detected