refactor: simplify temporary file handling in tests
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
This MR simplifies tests that use os.TempDir
.
We can remove the temporary file tf
because it's not used in TestMarkdownUploads_UploadProjectMarkdown_Retry
. Additionally, we can use os.WriteFile
with t.TempDir
to simplify the TestGroupImport
test.
Edited by 🤖 GitLab Bot 🤖