Advertisement
MyMindWorld

Untitled

Apr 4th, 2021
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. def test_book_create_collection(self):
  2. authorName = "Raphtalia"
  3. i = 0
  4. pages = 0
  5. while i < 10:
  6. book = steps.create_book()
  7. book["author"] = authorName
  8. pages += book["pagesCount"]
  9. steps.make_request_add_book(book)
  10. i += 1
  11. response = steps.make_request_create_collection(authorName)
  12. with allure.step("Проверяем, что коллекция создана правильно"):
  13. assert response["pagesCount"] == pages
  14. assert response["author"] == book["author"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement