Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
res,
{
"version": "1.0",
"error": "client required capability `will-never-exist` "
+ "is not supported by this server",
"capabilities": {"will-never-exist": False},
},
)
res = pywatchman.capabilities.synthesize(
{"version": "3.2"}, {"optional": ["relative_root"], "required": []}
)
self.assertDictEqual(
res, {"version": "3.2", "capabilities": {"relative_root": False}}
)
res = pywatchman.capabilities.synthesize(
{"version": "3.3"}, {"optional": ["relative_root"], "required": []}
)
self.assertDictEqual(
res, {"version": "3.3", "capabilities": {"relative_root": True}}
)