Skip to content

Commit

Permalink
Merge pull request #42 from hydroshare/user_id_tests
Browse files Browse the repository at this point in the history
update user_id tests
  • Loading branch information
sblack-usu authored Jun 15, 2022
2 parents 4abdac8 + 56d5d9a commit 90381c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_json_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_user_info(user):
assert creator.email == user.email
assert creator.homepage == user.website
assert creator.identifiers == user.identifiers
assert creator.hydroshare_user_id == user.id
assert creator.hydroshare_user_id == int(user.url.split("/")[-2])

contributor = Contributor.from_user(user)
assert contributor.name == user.name
Expand All @@ -103,4 +103,4 @@ def test_user_info(user):
assert contributor.email == user.email
assert contributor.homepage == user.website
assert contributor.identifiers == user.identifiers
assert contributor.hydroshare_user_id == user.id
assert contributor.hydroshare_user_id == int(user.url.split("/")[-2])

0 comments on commit 90381c2

Please sign in to comment.