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:
Jin Hai
2024-11-28 17:37:46 +08:00
committed by GitHub
parent 964a6f4ec4
commit cdae8d28fe
8 changed files with 20 additions and 19 deletions

View File

@ -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}