Skip to content

Commit

Permalink
Fix issue with old requests dependency on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEDGR committed Nov 2, 2024
1 parent fe21095 commit 8237135
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import random
import string
import requests
import httpx
import unittest
import challonge

Expand Down Expand Up @@ -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'],
Expand All @@ -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"
)
Expand Down Expand Up @@ -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'],
Expand All @@ -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"
)
Expand All @@ -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"
)
Expand Down

0 comments on commit 8237135

Please sign in to comment.