Skip to content

Commit 91fb7eb

Browse files
committed
update tests
1 parent dc69601 commit 91fb7eb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/tests_functional.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_signup_login(self):
3030

3131
# User sees error in form
3232
error = self.wait_for(class_name='help-block')
33-
self.assertEqual(error.text, 'The two password fields didn\'t match.')
33+
self.assertEqual(error.text, 'The two password fields didnt match.')
3434

3535
# User fills in and submits sign up form correctly
3636
form = modal.find_element_by_tag_name('form')
@@ -278,10 +278,6 @@ def test_delete_object(self):
278278
alert = self.wait_for(class_name='alert')
279279
self.assertEqual(alert.text[:-2], 'Success: Book was deleted.')
280280

281-
# User sees 'No books added yet.'
282-
no_books = self.browser.find_element_by_class_name('no-books')
283-
self.assertEqual(no_books.text, 'No books added yet.')
284-
285281
# There is no books in database anymore
286282
books = Book.objects.all()
287283
self.assertEqual(books.count(), 0)

0 commit comments

Comments
 (0)