MCPcopy
hub / github.com/pimutils/vdirsyncer / test_readonly_param

Function test_readonly_param

tests/storage/test_http.py:71–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70
71def test_readonly_param():
72 url = 'http://example.com/'
73 with pytest.raises(ValueError):
74 HttpStorage(url=url, read_only=False)
75
76 a = HttpStorage(url=url, read_only=True).read_only
77 b = HttpStorage(url=url, read_only=None).read_only
78 assert a is b is True
79
80
81def test_prepare_auth():

Callers

nothing calls this directly

Calls 1

HttpStorageClass · 0.90

Tested by

no test coverage detected