AutoGPT
AutoGPT copied to clipboard
Add file op tests
Background
Added file operations tests, to combat the increasing number of modifications to this file which break file io
Changes
Add and test file ops
Documentation
Lightly documented tests, but mostly self documenting - feel free to call for revisions if necessary
Test Plan
Ran new unit tests
PR Quality Checklist
- [x] My pull request is atomic and focuses on a single change.
- [x] I have thoroughly tested my changes with multiple different prompts.
- [x] I have considered potential risks and mitigations for my changes.
- [x] I have documented my changes clearly and comprehensively.
- [x] I have not snuck in any "extra" small tweaks changes
CI is red due to the use of is_relative_to here https://github.com/Significant-Gravitas/Auto-GPT/blob/5802f17726e69d4a764254c4f3d6a259aa410839/autogpt/workspace.py#L38, which only exists in 3.9+
unsure how to resolve this
CI is red due to the use of is_relative_to here
https://github.com/Significant-Gravitas/Auto-GPT/blob/5802f17726e69d4a764254c4f3d6a259aa410839/autogpt/workspace.py#L38
, which only exists in 3.9+ unsure how to resolve this
"Use the Force, Luke"
I tried that before, but it was rejected as someone didn't like the fact that I was updating to an older method call. Let's try again
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
CI is red due to the use of is_relative_to here, which only exists in 3.9+ unsure how to resolve this
We resolved it by requiring Python 3.10+. Pathlib unfortunately wasn't the only one breaking on older Python versions.