41f9427224
When a manifest mount target uses ~/{{WORKSPACE_NAME}}, the Dockerfile was
building a literal directory named {{WORKSPACE_NAME}} into the image and
creating a broken /workspace symlink. The runtime mount then created the
correct repo-named folder alongside the placeholder folder.
- Only create static mount target directories in the Dockerfile; skip any
target containing {{WORKSPACE_NAME}}
- Only create the /workspace compatibility symlink at image-build time when
the workspace name is known; otherwise let the entrypoint create it from
the WORKSPACE_NAME environment variable
- Update unit tests to cover both build-time workspace names and runtime
placeholders
Quality gates:
- pytest tests/unit: 211 passed
- ruff: clean on changed files
- mypy: clean on changed files
37 lines
1.1 KiB
Markdown
37 lines
1.1 KiB
Markdown
# apps/api/tests (index)
|
|
dir: apps/api/tests
|
|
|
|
## role
|
|
Provides shared test infrastructure and fixtures for the API application's test suite.
|
|
## parent
|
|
index: apps/api/.pi-map.index.md
|
|
map: apps/api/.pi-map.md
|
|
## children
|
|
- apps/api/tests/api
|
|
index: apps/api/tests/api/.pi-map.index.md
|
|
map: apps/api/tests/api/.pi-map.md
|
|
- apps/api/tests/integration
|
|
index: apps/api/tests/integration/.pi-map.index.md
|
|
map: apps/api/tests/integration/.pi-map.md
|
|
- apps/api/tests/services
|
|
index: apps/api/tests/services/.pi-map.index.md
|
|
map: apps/api/tests/services/.pi-map.md
|
|
- apps/api/tests/system
|
|
index: apps/api/tests/system/.pi-map.index.md
|
|
map: apps/api/tests/system/.pi-map.md
|
|
- apps/api/tests/unit
|
|
index: apps/api/tests/unit/.pi-map.index.md
|
|
map: apps/api/tests/unit/.pi-map.md
|
|
## files
|
|
- conftest.py
|
|
## links
|
|
index: apps/api/tests/.pi-map.index.md
|
|
map: apps/api/tests/.pi-map.md
|
|
## workflows
|
|
- change tests behavior
|
|
read: conftest.py
|
|
- explore tests subdirectories
|
|
index: apps/api/tests/api/.pi-map.index.md, apps/api/tests/integration/.pi-map.index.md, apps/api/tests/services/.pi-map.index.md
|
|
## dirty
|
|
-
|