Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_book_create_collection(self):
- authorName = "Raphtalia"
- i = 0
- pages = 0
- while i < 10:
- book = steps.create_book()
- book["author"] = authorName
- pages += book["pagesCount"]
- steps.make_request_add_book(book)
- i += 1
- response = steps.make_request_create_collection(authorName)
- with allure.step("Проверяем, что коллекция создана правильно"):
- assert response["pagesCount"] == pages
- assert response["author"] == book["author"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement