Skip to content

Add a pre-commit hook for long test files

Erwan Rouchet requested to merge long-tests-hook into master

Closes #1827 (closed)

$ pre-commit run -a
[…]
Warn about long unit test files..........................................Passed
- hook id: long-test-files
- duration: 0.01s

arkindex/process/tests/test_workeractivity.py is too long (1094 lines)
arkindex/training/tests/test_datasets_api.py is too long (2720 lines)
arkindex/process/tests/test_workers.py is too long (2730 lines)
arkindex/training/tests/test_model_api.py is too long (1503 lines)
arkindex/process/tests/worker_runs/test_update.py is too long (1005 lines)
arkindex/documents/tests/test_children_elements.py is too long (1209 lines)
arkindex/process/tests/test_processes.py is too long (3179 lines)
arkindex/process/tests/worker_runs/test_partial_update.py is too long (1065 lines)
arkindex/documents/tests/commands/test_cleanup.py is too long (1272 lines)
arkindex/documents/tests/test_entities_api.py is too long (1797 lines)
arkindex/documents/tests/test_metadata.py is too long (1675 lines)
arkindex/ponos/tests/test_api.py is too long (1381 lines)
arkindex/documents/tests/test_corpus_elements.py is too long (1025 lines)

Merge request reports

Loading