diff --git a/tests.py b/tests.py index faa5b77..3e6872f 100644 --- a/tests.py +++ b/tests.py @@ -3,7 +3,7 @@ import os import random import string -import requests +import httpx import unittest import challonge @@ -369,7 +369,7 @@ def test_create_url_with_description(self): @unittest.skip("Skipping because of API Issues") def test_create_file(self): - image = requests.get('https://picsum.photos/200/300') + image = httpx.get('https://picsum.photos/200/300') a1 = challonge.attachments.create( self.t['id'], self.match['id'], @@ -381,7 +381,7 @@ def test_create_file(self): @unittest.skip("Skipping because of API Issues") def test_create_file_with_description(self): - image = requests.get('https://picsum.photos/200/300') + image = httpx.get('https://picsum.photos/200/300') a1 = challonge.attachments.create( self.t["id"], self.match["id"], asset=image, description="just a test" ) @@ -428,13 +428,13 @@ def test_update_url_with_description(self): @unittest.skip("Skipping because of API Issues") def test_update_file(self): - image = requests.get('https://picsum.photos/200/300') + image = httpx.get('https://picsum.photos/200/300') a1 = challonge.attachments.create( self.t['id'], self.match['id'], asset=image) - image = requests.get('https://picsum.photos/200/300') + image = httpx.get('https://picsum.photos/200/300') challonge.attachments.update( self.t['id'], self.match['id'], @@ -447,12 +447,12 @@ def test_update_file(self): @unittest.skip("Skipping because of API Issues") def test_update_file_with_description(self): - image = requests.get('https://picsum.photos/200/300') + image = httpx.get('https://picsum.photos/200/300') a1 = challonge.attachments.create( self.t["id"], self.match["id"], asset=image, description="just a test" ) - image = requests.get('https://picsum.photos/200/300') + image = httpx.get('https://picsum.photos/200/300') challonge.attachments.update( self.t["id"], self.match["id"], a1["id"], asset=image, description="just a second test" ) @@ -464,12 +464,12 @@ def test_update_file_with_description(self): @unittest.skip("Skipping because of API Issues") def test_update_file_only_description(self): - image = requests.get('https://picsum.photos/200/300') + image = httpx.get('https://picsum.photos/200/300') a1 = challonge.attachments.create( self.t["id"], self.match["id"], asset=image, description="just a test" ) - image = requests.get('https://picsum.photos/200/300') + image = httpx.get('https://picsum.photos/200/300') challonge.attachments.update( self.t["id"], self.match["id"], a1["id"], description="just a second test" )