test(test_py): adding named token typesafe test
This commit is contained in:
parent
4485e6b05e
commit
533332d689
1 changed files with 4 additions and 0 deletions
|
|
@ -157,6 +157,10 @@ def test_creating_posts(client):
|
||||||
cat_posts = client.list_posts(query=[named_token(PostNamedToken.Tag, "maine_coon")])
|
cat_posts = client.list_posts(query=[named_token(PostNamedToken.Tag, "maine_coon")])
|
||||||
assert len(cat_posts.results) == 4
|
assert len(cat_posts.results) == 4
|
||||||
|
|
||||||
|
logger.info("Querying using typesafe types")
|
||||||
|
cat_posts = client.list_posts(query=[named_token(PostNamedToken.Safety, PostSafety.Safe)])
|
||||||
|
assert len(cat_posts.results) == 4
|
||||||
|
|
||||||
logger.info("Testing pagination")
|
logger.info("Testing pagination")
|
||||||
cat_posts = client.list_posts(limit=1)
|
cat_posts = client.list_posts(limit=1)
|
||||||
assert cat_posts.total == 4
|
assert cat_posts.total == 4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue