Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100% cov #196

Closed
wants to merge 24 commits into from
Closed

100% cov #196

wants to merge 24 commits into from

Conversation

wxtim
Copy link
Member

@wxtim wxtim commented Nov 25, 2022

Opened PR to allow commenting on code changes.

Requires cylc/cylc-flow#5246 to pass all tests

These changes close #157

Requirements check-list

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to setup.cfg.
  • Already covered by existing tests.
  • No change log entry required (invisible to users).
  • No documentation update required.

@wxtim wxtim marked this pull request as draft November 25, 2022 14:49
@wxtim wxtim self-assigned this Nov 28, 2022
@wxtim wxtim added this to the 1.2.0 milestone Nov 28, 2022
@wxtim wxtim marked this pull request as ready for review November 28, 2022 15:03
Copy link
Member

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯!

Great, glad to have full coverage for at least one of our repos.

.codecov.yml Outdated Show resolved Hide resolved
cylc/rose/entry_points.py Show resolved Hide resolved
cylc/rose/entry_points.py Show resolved Hide resolved
cylc/rose/entry_points.py Show resolved Hide resolved
cylc/rose/utilities.py Outdated Show resolved Hide resolved
cylc/rose/utilities.py Show resolved Hide resolved
cylc/rose/utilities.py Show resolved Hide resolved
tests/functional/test_pre_configure.py Outdated Show resolved Hide resolved
Comment on lines 153 to 166
@pytest.fixture
def cylc_install_cli(capsys, caplog):
return _cylc_install_cli(capsys, caplog)
return _cylc_cli(
capsys, caplog,
cylc_install, install_gop
)


@pytest.fixture(scope='module')
def mod_cylc_install_cli(mod_capsys, mod_caplog):
return _cylc_install_cli(mod_capsys, mod_caplog)
return _cylc_cli(
mod_capsys, mod_caplog,
cylc_install, install_gop
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe do this more similarly to the Cylc integration tests.

Copy link
Member Author

@wxtim wxtim Jan 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be too long ago, and I'm not terribly familiar with the Cylc Integration tests... but...

My impression is that they largely revolve around running flows which until recently were written to the flow directory.

Here most of the tests revolve around the install process, so I'm not sure that the same approach makes sense.

Even if it does, would you mind me (or you) kicking it into a new issue. I've had this PR open a while.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think my point was that this implementation differs from the one you are currently adding in cylc-flow with the cylc vr pull request. It would make sense to do it the same way for both.

tests/functional/test_pre_configure.py Outdated Show resolved Hide resolved
@oliver-sanders oliver-sanders marked this pull request as draft December 7, 2022 10:32
@oliver-sanders oliver-sanders modified the milestones: 1.2.0, 1.3.0 Dec 7, 2022
@wxtim wxtim marked this pull request as ready for review January 11, 2023 10:48
@wxtim
Copy link
Member Author

wxtim commented Jan 11, 2023

@oliver-sanders - this one is by no means a priority, but I think it's worth getting in at some point.

@wxtim wxtim marked this pull request as draft January 11, 2023 12:54
- Remove now superflous checks
- Refactored Conftest to allow use of Cylc view
- Added duplicate line in workflow db to check retrieval works correctly.
wxtim and others added 14 commits April 17, 2023 10:40
- Remove now superflous checks
- Refactored Conftest to allow use of Cylc view
- Added duplicate line in workflow db to check retrieval works correctly.
Co-authored-by: Oliver Sanders <[email protected]>
…cov_to_100

* 'get_cov_to_100' of github.com:wxtim/cylc-rose:
  remove rose stem test reliance on Popen
  wips
  remove fake popen
  response to review 1: simple fixes
  Update .codecov.yml
  Update .codecov.yml
  100% rose stem
  some work on rose stem
  fixed holes in the coverage of entry_points.py
  100 Cover for utilities.py and platform_utils.py - Remove now superflous checks - Refactored Conftest to allow use of Cylc view - Added duplicate line in workflow db to check retrieval works correctly.
@wxtim wxtim mentioned this pull request May 5, 2023
5 tasks
@wxtim
Copy link
Member Author

wxtim commented Jun 23, 2023

Thoroughly stale: I've made a note on my personal todo list that this branch is worth pulling stuff out of.

@wxtim wxtim closed this Jun 23, 2023
@MetRonnie MetRonnie removed this from the tmp milestone Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coverage: get coverage up
3 participants