Skip to content

Commit

Permalink
Rename cclw_ingest to pipeline_trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
olaughter committed Jan 31, 2024
1 parent 4411d84 commit b6c29c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

_LOGGER = logging.getLogger(__name__)

cclw_ingest_router = r = APIRouter()
pipeline_trigger_router = r = APIRouter()


def _start_ingest(
Expand Down
4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import subprocess
from contextlib import asynccontextmanager

from app.api.api_v1.routers.cclw_ingest import cclw_ingest_router
from app.api.api_v1.routers.pipeline_trigger import pipeline_trigger_router
from app.api.api_v1.routers.admin import admin_document_router
from app.api.api_v1.routers.auth import auth_router
from app.api.api_v1.routers.documents import documents_router
Expand Down Expand Up @@ -130,7 +130,7 @@ async def root():

# Create an admin router that is a combination of:
admin_router = APIRouter()
admin_router.include_router(cclw_ingest_router)
admin_router.include_router(pipeline_trigger_router)
admin_router.include_router(admin_document_router)

# App Routers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ def test_start_ingest(
test_db,
mocker,
):
mock_start_import = mocker.patch("app.api.api_v1.routers.cclw_ingest._start_ingest")
mock_start_import = mocker.patch(
"app.api.api_v1.routers.pipeline_trigger._start_ingest"
)

populate_geography(test_db)
populate_taxonomy(test_db)
Expand Down

0 comments on commit b6c29c2

Please sign in to comment.