Spaces:
Running
Running
Daryl Lim Claude Opus 4.6 (1M context) commited on
Commit ·
3e12cf3
1
Parent(s): 1a73708
docs: update test counts in CLAUDE.md and README.md
Browse filesReflect new totals after adding 2 layout tests and removing 4 obsolete
ones: 43 total (33 fast, 10 slow).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CLAUDE.md
CHANGED
|
@@ -36,7 +36,7 @@ pytest -m slow # model tests only (CUDA only)
|
|
| 36 |
|
| 37 |
**`langmap/`** — Package with `langid_mapping.py`, a hand-maintained dictionary mapping 22 Tier 1 production-ready language tokens (BLEU 35+ both directions, Section A.10) to human-readable language names. Available languages at runtime are the intersection of this mapping and the model's vocabulary.
|
| 38 |
|
| 39 |
-
**`tests/`** —
|
| 40 |
|
| 41 |
## Tooling
|
| 42 |
|
|
|
|
| 36 |
|
| 37 |
**`langmap/`** — Package with `langid_mapping.py`, a hand-maintained dictionary mapping 22 Tier 1 production-ready language tokens (BLEU 35+ both directions, Section A.10) to human-readable language names. Available languages at runtime are the intersection of this mapping and the model's vocabulary.
|
| 38 |
|
| 39 |
+
**`tests/`** — 43 tests (33 fast, 10 slow). `test_langmap.py` has 8 fast tests for language mapping validation. `test_app.py` has 25 fast tests (signatures, device fallback, UI layout including English dropdown, textbox height, inline clear, translate button outside columns, no HTML elements, filterable dropdown, locale codes, no title) and 10 slow tests (translation with various parameters, language mapping). Slow tests require CUDA and model download; auto-skipped without CUDA.
|
| 40 |
|
| 41 |
## Tooling
|
| 42 |
|
README.md
CHANGED
|
@@ -38,6 +38,6 @@ The Gradio interface launches at `http://localhost:7860`.
|
|
| 38 |
ruff check . # lint
|
| 39 |
ruff format . # format
|
| 40 |
ty check # type check
|
| 41 |
-
pytest -m "not slow" #
|
| 42 |
-
pytest # all
|
| 43 |
```
|
|
|
|
| 38 |
ruff check . # lint
|
| 39 |
ruff format . # format
|
| 40 |
ty check # type check
|
| 41 |
+
pytest -m "not slow" # 33 fast tests
|
| 42 |
+
pytest # all 43 tests (slow require CUDA + model download)
|
| 43 |
```
|