From db9f296ebe047e7457ad3a8bb23fa8512ab5e50b Mon Sep 17 00:00:00 2001 From: TennyZhuang Date: Fri, 24 Apr 2020 23:28:49 +0800 Subject: [PATCH] update test --- tests/integration/test_lock.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/integration/test_lock.py b/tests/integration/test_lock.py index 7b81e0be..4f202bea 100644 --- a/tests/integration/test_lock.py +++ b/tests/integration/test_lock.py @@ -379,10 +379,8 @@ fake-package = "*" assert c.return_code == 0 c = p.pipenv('lock -r --pypi-mirror {0}'.format(mirror_url)) assert c.return_code == 0 - assert '-i https://pypi.org/simple' in c.out.strip() + assert '-i {0}'.format(mirror_url) in c.out.strip() assert '--extra-index-url https://test.pypi.org/simple' in c.out.strip() - # Mirror url should not have replaced source URLs - assert '-i {0}'.format(mirror_url) not in c.out.strip() assert '--extra-index-url {}'.format(mirror_url) not in c.out.strip()