mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
TEST: Added test cases for Create Dataset HTTP API (#5724)
### What problem does this PR solve? 1. add test cases 2. integrate workflows/tests.yml into CI pipeline ### Type of change - [x] add testcases
This commit is contained in:
@ -18,6 +18,8 @@ import os
|
||||
import pytest
|
||||
import requests
|
||||
|
||||
from libs.auth import RAGFlowHttpApiAuth
|
||||
|
||||
HOST_ADDRESS = os.getenv('HOST_ADDRESS', 'http://127.0.0.1:9380')
|
||||
|
||||
|
||||
@ -85,3 +87,8 @@ def get_auth():
|
||||
@pytest.fixture(scope="session")
|
||||
def get_email():
|
||||
return EMAIL
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def get_http_api_auth(get_api_key_fixture):
|
||||
return RAGFlowHttpApiAuth(get_api_key_fixture)
|
||||
|
||||
Reference in New Issue
Block a user