Skip to content

Conversation

@pdgendt
Copy link
Collaborator

@pdgendt pdgendt commented Dec 1, 2025

Have the actual reason for skipping the test in the output.

$ uv run poe test -v tests/test_config.py::test_config_non_readable_file
...
tests/test_config.py::test_config_non_readable_file SKIPPED (root user can always read files)
PS D:\west> uv run poe test -v tests/test_config.py::test_config_non_readable_file
...
tests/test_config.py::test_config_non_readable_file SKIPPED (Non-readable files do not exist on Windows)                                                                                                                                                                                                                                                                            

@pdgendt pdgendt requested a review from marc-hb December 1, 2025 08:18
@pdgendt pdgendt force-pushed the test-config-split-skipif branch from d279da0 to affeb83 Compare December 1, 2025 08:19
@pdgendt pdgendt force-pushed the test-config-split-skipif branch from affeb83 to 71d19fa Compare December 1, 2025 08:27
Have the actual reason for skipping the test in the output.

Signed-off-by: Pieter De Gendt <[email protected]>
@pdgendt pdgendt force-pushed the test-config-split-skipif branch from 71d19fa to ce53f0d Compare December 1, 2025 08:30
@codecov
Copy link

codecov bot commented Dec 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.93%. Comparing base (76890ef) to head (ce53f0d).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #891   +/-   ##
=======================================
  Coverage   84.93%   84.93%           
=======================================
  Files          11       11           
  Lines        3444     3444           
=======================================
  Hits         2925     2925           
  Misses        519      519           

@pdgendt pdgendt requested a review from carlescufi December 1, 2025 14:44
assert cfg(f=LOCAL)['pytest']['precedence'] == 'local'


@pytest.mark.skipif(WINDOWS, reason="Non-readable files do not exist on Windows")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
@pytest.mark.skipif(WINDOWS, reason="Non-readable files do not exist on Windows")
@pytest.mark.skipif(WINDOWS, reason="chmod is not available on Windows")

Pretty sure NTFS can stop some users from reading some files!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is available, but you can only make files read-only.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@marc-hb do you still prefer that I change to your suggestion? I'm fine either way.

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.

3 participants