Skip to content

Commit 975bcec

Browse files
authored
Rename API and deconstruct test class (#659)
* Change API base name to connector * Deconstruct test class
1 parent 5dd3ebd commit 975bcec

19 files changed

+2448
-2426
lines changed
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from fastapi import APIRouter
22

3-
from app.routers.v2 import analysis, ibis
3+
from app.routers.v2 import analysis, connector
44

55
prefix = "/v2"
66

77
router = APIRouter(prefix=prefix)
88

9-
router.include_router(ibis.router)
9+
router.include_router(connector.router)
1010
router.include_router(analysis.router)

ibis-server/app/routers/v2/ibis.py renamed to ibis-server/app/routers/v2/connector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from app.model.validator import Validator
1919
from app.util import to_json
2020

21-
router = APIRouter(prefix="/ibis")
21+
router = APIRouter(prefix="/connector")
2222

2323

2424
@router.post("/{data_source}/query", dependencies=[Depends(verify_query_dto)])

ibis-server/tests/confest.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import os
2+
3+
4+
def file_path(path: str) -> str:
5+
return os.path.join(os.path.dirname(__file__), path)

ibis-server/tests/routers/ibis/test_bigquery.py

-325
This file was deleted.

0 commit comments

Comments
 (0)