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:
刘安
2025-03-06 20:22:17 +08:00
committed by GitHub
parent 27153dde85
commit 4f9504305a
8 changed files with 414 additions and 1 deletions

View File

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