Skip to content

Commit

Permalink
Fix comments typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ping committed Sep 7, 2023
1 parent 296a05f commit 4f46317
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/libby.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def test_tag_sort(self):

res = self.client.tags()
for tag in res.get("tags"):
# test sort by oldest
# test sort by newest
res = self.client.tag_paged(
tag["uuid"],
tag["name"],
Expand All @@ -459,7 +459,7 @@ def test_tag_sort(self):
taggings = tag_found["taggings"]
for i, title in enumerate(taggings):
if i > 0:
# sorted by oldest,
# sorted by newest,
previous_title = taggings[i - 1]
self.assertTrue(title["createTime"] < previous_title["createTime"])

Expand All @@ -474,7 +474,7 @@ def test_tag_sort(self):
taggings = tag_found["taggings"]
for i, title in enumerate(taggings):
if i > 0:
# sorted by oldest,
# sorted by oldest
previous_title = taggings[i - 1]
self.assertTrue(title["createTime"] > previous_title["createTime"])

Expand All @@ -485,7 +485,7 @@ def test_tag_sort(self):
taggings = tag_found["taggings"]
for i, title in enumerate(taggings):
if i > 0:
# sorted by title,
# sorted by title
previous_title = taggings[i - 1]
self.assertTrue(title["sortTitle"] > previous_title["sortTitle"])

Expand All @@ -496,7 +496,7 @@ def test_tag_sort(self):
taggings = tag_found["taggings"]
for i, title in enumerate(taggings):
if i > 0:
# sorted by title,
# sorted by author
previous_title = taggings[i - 1]
self.assertTrue(title["sortAuthor"] >= previous_title["sortAuthor"])

Expand Down

0 comments on commit 4f46317

Please sign in to comment.