From 533332d689f61bc1b416fa9b24275d3397ac12ca Mon Sep 17 00:00:00 2001 From: Scott Lyons Date: Fri, 6 Sep 2024 10:01:40 -0700 Subject: [PATCH] test(test_py): adding named token typesafe test --- tests/python-sync/test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/python-sync/test.py b/tests/python-sync/test.py index 3f7f39b..21dad68 100644 --- a/tests/python-sync/test.py +++ b/tests/python-sync/test.py @@ -157,6 +157,10 @@ def test_creating_posts(client): cat_posts = client.list_posts(query=[named_token(PostNamedToken.Tag, "maine_coon")]) 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") cat_posts = client.list_posts(limit=1) assert cat_posts.total == 4