Skip to content

Commit

Permalink
fix(app):
Browse files Browse the repository at this point in the history
1. fix github test hide Authorization
  • Loading branch information
MorvanZhou committed Apr 25, 2024
1 parent e1dd679 commit c82cf33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
from PIL import Image
from fastapi.testclient import TestClient
from httpx import Response

from retk import const, config, PluginAPICallReturn
from retk.application import app
from retk.core import account
from retk.models.client import client
from retk.models.tps import convert_user_dict_to_authed_user
from retk.plugins.register import register_official_plugins, unregister_official_plugins
from retk.utils import jwt_decode

from . import utils


Expand Down Expand Up @@ -228,7 +228,7 @@ async def test_get_new_access_token(self):
)
rj = self.check_ok_response(resp, 200)
self.assertEqual(818, len(rj["accessToken"]))
self.assertNotEqual(self.default_headers["Authorization"], rj["accessToken"])
self.assertTrue(self.default_headers["Authorization"] != rj["accessToken"])
self.assertTrue(rj["accessToken"].startswith("Bearer "))
self.assertEqual("", rj["refreshToken"])

Expand Down

0 comments on commit c82cf33

Please sign in to comment.