Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jokester committed Nov 5, 2024
1 parent 5cfe87e commit 8d2bcc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def create_test_app():


class MoeTestCase(TestCase):
maxDiff = None
def setUp(self):
self.app = create_test_app()
self.app_context = self.app.app_context()
Expand Down
4 changes: 3 additions & 1 deletion tests/api/test_team_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ def test_get_team_list2(self):
# word = t,搜到 2 个
data = self.get("/v1/teams", query_string={"word": "t"}, token=token)
self.assertErrorEqual(data)
self.assertEqual(2, len(data.json))
self.assertEqual(
# default team + t1 + t2
3, len(data.json))
# word = 1,搜到 1 个
data = self.get("/v1/teams", query_string={"word": "1"}, token=token)
self.assertErrorEqual(data)
Expand Down

0 comments on commit 8d2bcc9

Please sign in to comment.