Skip to content

Commit

Permalink
Improve repositores code
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Nov 6, 2024
1 parent c3e0486 commit e8cc9f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions artifactory/commands/buildtoollogin/buildtoollogin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ func testBuildToolLoginCommandPip(t *testing.T, buildTool project.ProjectType) {

for _, testCase := range testCases {
t.Run(testCase.name, func(t *testing.T) {
// Clean up the temporary pip config file.
assert.NoError(t, os.Remove(pipConfFilePath))

// Set up server details for the current test case's authentication type.
pipLoginCmd.serverDetails.SetUser(testCase.user)
pipLoginCmd.serverDetails.SetPassword(testCase.password)
Expand All @@ -204,6 +201,9 @@ func testBuildToolLoginCommandPip(t *testing.T, buildTool project.ProjectType) {
// Validate anonymous access.
assert.Contains(t, pipConfigContent, "index-url = https://acme.jfrog.io/artifactory/api/pypi/test-repo/simple")
}

// Clean up the temporary pip config file.
assert.NoError(t, os.Remove(pipConfFilePath))
})
}
}
Expand Down

0 comments on commit e8cc9f8

Please sign in to comment.