diff options
| author | Benjamin Peterson <benjamin@python.org> | 2013-03-18 15:20:56 -0700 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2013-03-18 15:20:56 -0700 |
| commit | 0c09bf1bc035dfbc0caf1339c05a04cca238fcd6 (patch) | |
| tree | 90be466097b3f3b514aa29afdc48d9d8188aafdd /tests | |
| parent | 9083f3f9b95467a985db2231e782d42fdcb80216 (diff) | |
| download | python-setuptools-git-0c09bf1bc035dfbc0caf1339c05a04cca238fcd6.tar.gz | |
use the HTTPS for pypi upload
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_config.py | 4 | ||||
| -rw-r--r-- | tests/test_upload.py | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 525bee94..12593610 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -87,7 +87,7 @@ class PyPIRCCommandTestCase(support.TempdirManager, config = list(sorted(config.items())) waited = [('password', 'secret'), ('realm', 'pypi'), - ('repository', 'http://pypi.python.org/pypi'), + ('repository', 'https://pypi.python.org/pypi'), ('server', 'server1'), ('username', 'me')] self.assertEqual(config, waited) @@ -96,7 +96,7 @@ class PyPIRCCommandTestCase(support.TempdirManager, config = cmd._read_pypirc() config = list(sorted(config.items())) waited = [('password', 'secret'), ('realm', 'pypi'), - ('repository', 'http://pypi.python.org/pypi'), + ('repository', 'https://pypi.python.org/pypi'), ('server', 'server-login'), ('username', 'tarek')] self.assertEqual(config, waited) diff --git a/tests/test_upload.py b/tests/test_upload.py index 4c6464a3..d2696866 100644 --- a/tests/test_upload.py +++ b/tests/test_upload.py @@ -72,11 +72,11 @@ class uploadTestCase(PyPIRCCommandTestCase): def setUp(self): super(uploadTestCase, self).setUp() - self.old_class = httpclient.HTTPConnection - self.conn = httpclient.HTTPConnection = FakeConnection() + self.old_class = httpclient.HTTPSConnection + self.conn = httpclient.HTTPSConnection = FakeConnection() def tearDown(self): - httpclient.HTTPConnection = self.old_class + httpclient.HTTPSConnection = self.old_class super(uploadTestCase, self).tearDown() def test_finalize_options(self): @@ -88,7 +88,7 @@ class uploadTestCase(PyPIRCCommandTestCase): cmd.finalize_options() for attr, waited in (('username', 'me'), ('password', 'secret'), ('realm', 'pypi'), - ('repository', 'http://pypi.python.org/pypi')): + ('repository', 'https://pypi.python.org/pypi')): self.assertEqual(getattr(cmd, attr), waited) def test_saved_password(self): |
