lukesneeringer / fauxquests Goto Github PK
View Code? Open in Web Editor NEWMock HTTP requests sent with the requests package. For Python 2 or Python 3.
License: Other
Mock HTTP requests sent with the requests package. For Python 2 or Python 3.
License: Other
======================================================================
ERROR: test_fauxquests (test_integration.IntegrationTests)
Ensure that a standard request registration and mock out
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/brain/rpmbuild/BUILD/fauxquests-16d1f71547279fc7862c4b6597fab5524f70b082/tests/test_integration.py", line 21, in test_fauxquests
self.assertEqual(result.content.decode('utf8'), 'blahblah')
File "/home/brain/rpmbuild/BUILD/fauxquests-16d1f71547279fc7862c4b6597fab5524f70b082/fauxquests/session.py", line 42, in __exit__
return self.stop()
File "/home/brain/rpmbuild/BUILD/fauxquests-16d1f71547279fc7862c4b6597fab5524f70b082/fauxquests/session.py", line 105, in stop
self.patcher.stop()
File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1513, in stop
return self.__exit__()
File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1477, in __exit__
raise RuntimeError('stop called on unstarted patcher')
RuntimeError: stop called on unstarted patcher
======================================================================
ERROR: test_method_match (test_integration.IntegrationTests)
Ensure that a method-specific registration is honored,
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/brain/rpmbuild/BUILD/fauxquests-16d1f71547279fc7862c4b6597fab5524f70b082/tests/test_integration.py", line 44, in test_method_match
result = requests.get('http://www.google.com/')
File "/home/brain/rpmbuild/BUILD/fauxquests-16d1f71547279fc7862c4b6597fab5524f70b082/fauxquests/session.py", line 42, in __exit__
return self.stop()
File "/home/brain/rpmbuild/BUILD/fauxquests-16d1f71547279fc7862c4b6597fab5524f70b082/fauxquests/session.py", line 105, in stop
self.patcher.stop()
File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1513, in stop
return self.__exit__()
File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1477, in __exit__
raise RuntimeError('stop called on unstarted patcher')
RuntimeError: stop called on unstarted patcher
======================================================================
ERROR: test_unregistered (test_integration.IntegrationTests)
Ensure that an unregistered URL fails in the way we expect,
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/brain/rpmbuild/BUILD/fauxquests-16d1f71547279fc7862c4b6597fab5524f70b082/tests/test_integration.py", line 29, in test_unregistered
result = requests.get('http://www.google.com/')
File "/home/brain/rpmbuild/BUILD/fauxquests-16d1f71547279fc7862c4b6597fab5524f70b082/fauxquests/session.py", line 42, in __exit__
return self.stop()
File "/home/brain/rpmbuild/BUILD/fauxquests-16d1f71547279fc7862c4b6597fab5524f70b082/fauxquests/session.py", line 105, in stop
self.patcher.stop()
File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1513, in stop
return self.__exit__()
File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1477, in __exit__
raise RuntimeError('stop called on unstarted patcher')
RuntimeError: stop called on unstarted patcher
Please tag commit and publish tag. It will help for distros to package fauxquests.
======================================================================
ERROR: test_release_conn (test_resp.RespTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/brain/rpmbuild/BUILD/fauxquests-16d1f71547279fc7862c4b6597fab5524f70b082/tests/test_resp.py", line 18, in test_release_conn
m.assert_called_once()
File "/usr/lib64/python3.5/unittest/mock.py", line 583, in __getattr__
raise AttributeError(name)
AttributeError: assert_called_once
Python 3.5.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.