Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_rpcssl ():
stub = aquests.rpc ("https://pypi.python.org/pypi")
stub.package_releases('roundup')
stub.package_releases('roundup')
stub.package_releases('roundup')
aquests.fetchall ()
def test_post_but_404 ():
stub = aquests.rpc ("http://127.0.0.1:5000/rpc2356465")
stub2 = aquests.rpc ("http://192.168.1.120:5000/rpc2")
for i in range (300):
stub.add_number (5, 'A' * 2048)
#stub2.add_number (5, 7)
aquests.fetchall ()
def test_rpc_pypi ():
stub = aquests.rpc ("https://pypi.python.org/pypi/")
stub.package_releases('roundup')
stub.prelease_urls('roundup', '1.4.10')
aquests.fetchall ()
import aquests
aquests.configure (10)
stub = aquests.rpc ("http://127.0.0.1:5000/rpc2")
for i in range (30):
stub.add_number (5, 7)
aquests.fetchall ()
def make_example_testset ():
if os.path.isfile (r"D:\apps\skitai\tests\examples"):
jpg = open (os.path.join (r"D:\apps\skitai\tests\examples", "statics", "reindeer.jpg"), "rb")
aquests.upload ("http://127.0.0.1:5000/upload", {"username": "pytest", "file1": jpg})
aquests.get ("http://127.0.0.1:5000/")
aquests.get ("http://127.0.0.1:5000/members/", auth = ('admin', '1111'))
aquests.get ("http://127.0.0.1:5000/redirect1")
aquests.rpc ("http://127.0.0.1:5000/rpc2/").add_number (1, 2)
aquests.ws ("ws://127.0.0.1:5000/websocket/echo-single", "Hello Skitai")
import aquests
stub = aquests.rpc ("https://pypi.python.org/pypi/")
stub.package_releases('roundup')
stub.prelease_urls('roundup', '1.4.10')
aquests.fetchall ()