mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix test cases (#3718)
### What problem does this PR solve? Fix test cases ### Type of change - [x] Other (please describe): Fix error cases --------- Signed-off-by: jinhai <haijin.chn@gmail.com>
This commit is contained in:
@ -40,7 +40,10 @@ def login():
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def get_api_key_fixture():
|
||||
register()
|
||||
try:
|
||||
register()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
auth = login()
|
||||
url = HOST_ADDRESS + "/v1/system/new_token"
|
||||
auth = {"Authorization": auth}
|
||||
|
||||
Reference in New Issue
Block a user