NCAS-CMS / NCAS-CMS/cf-python

Decorate unit tests requiring network access w/ conditional skip

Open
#751 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

testing
Dominant language
Python
Stars
150
Forks
23
Avg merge
1d 11h
Merged PRs (30d)
2

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the second paragraph of the discussion on pull request #747 and identify the minority of tests that rely on online access. Add a network-access check and conditional skips so the test suite can be developed with limited internet access and flaky URL access; done means those tests are skipped when unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.