Skip to content

Commit

Permalink
fix(sdk): Adding line breaks in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse-numerous committed Oct 29, 2024
1 parent 58ed9fc commit 631a55f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/tests/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,17 @@ 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)


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


Expand All @@ -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"
4 changes: 4 additions & 0 deletions python/tests/test_user_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 631a55f

Please sign in to comment.