Skip to content

Commit

Permalink
rename test file for pytest conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
sblack-usu committed Feb 17, 2021
1 parent 53df1b0 commit b82a0d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional_tests.py → tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ def test_creator_order(new_resource):
res = new_resource # hydroshare.resource("1248abc1afc6454199e65c8f642b99a0")
res.metadata.creators.append(Creator(name="Testing"))
res.save()
assert res.metadata.creators[0].name == "Black, Scott S"
assert res.metadata.creators[0].name == "Black, Scott Steven"
assert res.metadata.creators[1].name == "Testing"
reversed = [res.metadata.creators[1], res.metadata.creators[0]]
res.metadata.creators = reversed
res.save()
assert res.metadata.creators[1].name == "Black, Scott S"
assert res.metadata.creators[1].name == "Black, Scott Steven"
assert res.metadata.creators[0].name == "Testing"


Expand Down

0 comments on commit b82a0d6

Please sign in to comment.