Skip to content

Fix copilot review feedback on security tests#55

Merged
deacon-mp merged 1 commit intomasterfrom
fix/copilot-review-feedback
Mar 18, 2026
Merged

Fix copilot review feedback on security tests#55
deacon-mp merged 1 commit intomasterfrom
fix/copilot-review-feedback

Conversation

@deacon-mp
Copy link
Copy Markdown
Contributor

Summary

  • Normalize PLUGIN_DIR with os.path.abspath() for reliable path resolution
  • Use pytest.importorskip("yaml") instead of bare import yaml
  • Guard ATOMICS_DIR tests with pytest.skip when directory is missing
  • Add encoding='utf-8' to all open() calls
  • Handle None in keyword.arg during AST keyword scanning

Test plan

  • Run pytest tests/test_atomic_security.py to verify tests still pass
  • Verify tests skip gracefully when atomics submodule is not initialized

- Normalize PLUGIN_DIR with os.path.abspath
- Use pytest.importorskip('yaml') instead of bare import
- Guard ATOMICS_DIR test with pytest.skip when directory is missing
- Add encoding='utf-8' to all file open() calls
- Handle None keyword.arg in AST keyword scanning
@deacon-mp deacon-mp merged commit 880231f into master Mar 18, 2026
1 of 2 checks passed
@deacon-mp deacon-mp deleted the fix/copilot-review-feedback branch March 18, 2026 03:52
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.

1 participant