Skip to content
Myr

Test suite cleanup

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 1299708 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:test_requests.py+4 added-2 removed
3 unmodified lines
4from __future__ import with_statement56import time7import cookielib8import os9import unittest1011import envoy12
5 unmodified lines
18import requests1920from requests.sessions import Session2122PORT = os.environ.get('HTTPBIN_PORT', '7045')2322HTTPBIN_URL = 'http://0.0.0.0:7045/'24HTTPBIN_URL = 'http://0.0.0.0:%s/' % (PORT)25# HTTPBIN_URL = 'http://127.0.0.1:8000/'262728def httpbin(*suffix):
17 unmodified lines
46 global _httpbin4748 if not _httpbin:4948 self.httpbin = envoy.connect('gunicorn httpbin:app --bind=0.0.0.0:7045')50 self.httpbin = envoy.connect('gunicorn httpbin:app --bind=0.0.0.0:%s' % (PORT))5152 _httpbin = True53 time.sleep(1)54
429 unmodified lines