test(python-sync): fixing the python test suite with new exception name
This commit is contained in:
parent
3611849c00
commit
bb888bb314
1 changed files with 4 additions and 2 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
from szurubooru_client import *
|
from szurubooru_client import *
|
||||||
|
from szurubooru_client.tokens import *
|
||||||
|
from szurubooru_client.models import *
|
||||||
import time, sys
|
import time, sys
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
import hashlib
|
import hashlib
|
||||||
|
|
@ -144,7 +146,7 @@ def test_creating_posts(client):
|
||||||
|
|
||||||
logger.info("Testing temporary upload")
|
logger.info("Testing temporary upload")
|
||||||
token = client.upload_temporary_file("../folly4.jpg")
|
token = client.upload_temporary_file("../folly4.jpg")
|
||||||
folly4 = client.create_post(token=token, tags=["maine_coon", "cat", "folly4"],
|
folly4 = client.create_post(upload_token=token, tags=["maine_coon", "cat", "folly4"],
|
||||||
safety=PostSafety.Safe)
|
safety=PostSafety.Safe)
|
||||||
|
|
||||||
logger.info("Querying by anonymous tag")
|
logger.info("Querying by anonymous tag")
|
||||||
|
|
@ -281,7 +283,7 @@ def test_comments(client):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
client.rate_comment(comment.id, -2)
|
client.rate_comment(comment.id, -2)
|
||||||
except SzuruPyClientError:
|
except SzuruClientError:
|
||||||
assert True
|
assert True
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue