From 631a55f4230df07feead0c9b9c7430b9e6be605b Mon Sep 17 00:00:00 2001 From: lasse-numerous Date: Tue, 29 Oct 2024 09:49:17 +0100 Subject: [PATCH] fix(sdk): Adding line breaks in tests --- python/tests/test_user.py | 4 ++++ python/tests/test_user_session.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/python/tests/test_user.py b/python/tests/test_user.py index 2fbab6c..15ed44a 100644 --- a/python/tests/test_user.py +++ b/python/tests/test_user.py @@ -46,6 +46,7 @@ def test_user_collection_property_returns_numerous_collection( mock_graphql_client: GraphQLClient, ) -> None: user = User(id=mock_id, name="John Doe", _client=mock_graphql_client) + assert isinstance(user.collection, NumerousCollection) @@ -53,7 +54,9 @@ def test_user_collection_property_uses_user_id( mock_graphql_client: GraphQLClient, ) -> None: user = User(id=mock_id, name="John Doe", _client=mock_graphql_client) + assert user.collection is not None + assert user.collection.key == mock_key @@ -64,4 +67,5 @@ def test_from_user_info_returns_user_with_correct_attributes( user = User.from_user_info(user_info, _client=mock_graphql_client) assert user.id == mock_id + assert user.name == "Jane Smith" diff --git a/python/tests/test_user_session.py b/python/tests/test_user_session.py index 9c08bfb..afe34c0 100644 --- a/python/tests/test_user_session.py +++ b/python/tests/test_user_session.py @@ -59,7 +59,11 @@ def test_user_property_returns_user_when_valid_cookie( cg = CookieGetterStub({"numerous_user_info": encoded_info}) session = Session(cg, _client=mock_graphql_client) + assert isinstance(session.user, User) + assert session.user is not None + assert session.user.id == "1" + assert session.user.name == "Test User"