Skip to content
Commits on Source (2)
python-kdcproxy (0.3.2-4) unstable; urgency=medium
* rules: Set a local http_proxy to avoid accessing network.
(Closes: #833000)
-- Timo Aaltonen <tjaalton@debian.org> Thu, 27 Oct 2016 10:18:34 +0300
python-kdcproxy (0.3.2-3) unstable; urgency=medium
* control: Add libkrb5-3 to build-depends.
......
https://github.com/testing-cabal/mock/issues/323
--- a/tests.py
+++ b/tests.py
@@ -79,7 +79,7 @@ class KDCProxyWSGITests(unittest.TestCas
self.assertEqual(r.text, 'Method not allowed (GET).')
@mock.patch('socket.getaddrinfo', return_value=addrinfo)
- @mock.patch('socket.socket', autospec=True)
+ @mock.patch('socket.socket')
def test_post_asreq(self, m_socket, m_getaddrinfo):
response = self.post(KDCProxyCodecTests.asreq1)
self.assert_response(response)
@@ -92,7 +92,7 @@ class KDCProxyWSGITests(unittest.TestCas
)
@mock.patch('socket.getaddrinfo', return_value=addrinfo)
- @mock.patch('socket.socket', autospec=True)
+ @mock.patch('socket.socket')
def test_post_kpasswd(self, m_socket, m_getaddrinfo):
response = self.post(KDCProxyCodecTests.kpasswdreq)
self.assert_response(response)
......@@ -11,4 +11,4 @@ override_dh_auto_install:
rm -rf debian/python*-kdcproxy/usr/lib/python*/dist-packages/kdcproxy-*.egg-info
override_dh_auto_test:
tox --sitepackages -e py27,py35
http_proxy='http://127.0.0.1:9/' tox --sitepackages -e py27,py35