cf-python
cf-python copied to clipboard
Decorate unit tests requiring network access w/ conditional skip
See the second paragraph of https://github.com/NCAS-CMS/cf-python/pull/747#discussion_r1537494667. In short, to aid with development with limited internet access and help with issues of flaky URL access, we can create a small helper function to check for network access and use that to conditional skip tests which rely on being online, which are the minority of tests.