AOSSIE-Org / AOSSIE-Org/Gitcord-GithubDiscordBot
[BUG]: Windows folder paths with backslashes crash YAML config parsing
- Dominant language
- Python
- Stars
- 22
- Forks
- 21
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 21
Description
### Bug Description
## Description
On Windows computers, folder paths use backslashes (for example: C:\Users\username\...).
In multiple test files, temporary folder paths are written into config YAML files inside double quotes:
The YAML config reader gets confused by \U inside double quotes because it thinks \U is a special code rather than a normal folder path.
- 8 unit tests in test_audit_export.py and test_identity_linking.py fail immediately on Windows.
- Any Windows user who writes double-quoted file paths in their config.yaml will see the bot crash on startup with a YAML parse error.
### Steps to Reproduce
1. On a Windows machine, open a terminal in the project directory.
2. Run pytest tests/test_audit_export.py.
3. The tests will fail with a yaml.scanner.ScannerError and SystemExit: 1.
### Logs and Screenshots
### Environment Details
- OS : Windows 11
- Browser : Microsoft Edge
### Impact
Medium - Feature works but has issues
### Code of Conduct
- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates
Contributor guide
Assessment
This issue has not been assessed yet.