mirror of
https://github.com/actions/setup-python.git
synced 2025-12-22 16:27:09 +00:00
Update __tests__/utils.test.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
24f18a93cf
commit
a272ba362a
1 changed files with 3 additions and 1 deletions
|
|
@ -435,7 +435,9 @@ describe('configurePipRepository', () => {
|
|||
expect(fs.existsSync(configPath)).toBeTruthy();
|
||||
const content = fs.readFileSync(configPath, 'utf8');
|
||||
expect(content).toContain('[global]');
|
||||
expect(content).toContain('index-url = https://testuser:testpass@');
|
||||
const encodedUsername = encodeURIComponent(username);
|
||||
const encodedPassword = encodeURIComponent(password);
|
||||
expect(content).toContain(`index-url = https://${encodedUsername}:${encodedPassword}@`);
|
||||
expect(content).toContain('nexus.example.com/repository/pypi/simple');
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue