forked from mirrors/bookwyrm
revert previously changed unit tests
This commit is contained in:
parent
d9ac326c29
commit
5d25da93d5
3 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ class List(TestCase):
|
|||
book_list = models.List.objects.create(
|
||||
name="Test List", user=self.local_user
|
||||
)
|
||||
expected_id = f"https://{settings.DOMAIN}/list/{book_list.id}/s/test-list"
|
||||
expected_id = f"https://{settings.DOMAIN}/list/{book_list.id}"
|
||||
self.assertEqual(book_list.get_remote_id(), expected_id)
|
||||
|
||||
def test_to_activity(self, _):
|
||||
|
|
|
@ -48,7 +48,7 @@ class IsbnViews(TestCase):
|
|||
data = json.loads(response.content)
|
||||
self.assertEqual(len(data), 1)
|
||||
self.assertEqual(data[0]["title"], "Test Book")
|
||||
self.assertEqual(data[0]["key"], f"https://{DOMAIN}/book/{self.book.id}/s/test-book")
|
||||
self.assertEqual(data[0]["key"], f"https://{DOMAIN}/book/{self.book.id}")
|
||||
|
||||
def test_isbn_html_response(self):
|
||||
"""searches local data only and returns book data in json format"""
|
||||
|
|
|
@ -52,7 +52,7 @@ class Views(TestCase):
|
|||
data = json.loads(response.content)
|
||||
self.assertEqual(len(data), 1)
|
||||
self.assertEqual(data[0]["title"], "Test Book")
|
||||
self.assertEqual(data[0]["key"], f"https://{DOMAIN}/book/{self.book.id}/s/test-book")
|
||||
self.assertEqual(data[0]["key"], f"https://{DOMAIN}/book/{self.book.id}")
|
||||
|
||||
def test_search_no_query(self):
|
||||
"""just the search page"""
|
||||
|
|
Loading…
Reference in a new issue