mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 09:16:14 +01:00
- adjusted testcase for the init_basicauth change in master
This commit is contained in:
parent
8050671870
commit
1d7c674d80
@ -71,7 +71,7 @@ class OscTestCase(unittest.TestCase):
|
||||
shutil.copytree(os.path.join(self._get_fixtures_dir(), 'osctest'), os.path.join(self.tmpdir, 'osctest'))
|
||||
global EXPECTED_REQUESTS
|
||||
EXPECTED_REQUESTS = []
|
||||
urllib2.install_opener(urllib2.build_opener(MyHTTPHandler(EXPECTED_REQUESTS, self._get_fixtures_dir())))
|
||||
osc.core.conf._build_opener = lambda u: urllib2.build_opener(MyHTTPHandler(EXPECTED_REQUESTS, self._get_fixtures_dir()))
|
||||
self.stdout = sys.stdout
|
||||
sys.stdout = StringIO.StringIO()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user