mirror of
https://github.com/actions/setup-python.git
synced 2026-01-24 07:51:44 +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
@ -435,7 +435,9 @@ describe('configurePipRepository', () => {
|
|||||||
expect(fs.existsSync(configPath)).toBeTruthy();
|
expect(fs.existsSync(configPath)).toBeTruthy();
|
||||||
const content = fs.readFileSync(configPath, 'utf8');
|
const content = fs.readFileSync(configPath, 'utf8');
|
||||||
expect(content).toContain('[global]');
|
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');
|
expect(content).toContain('nexus.example.com/repository/pypi/simple');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user