mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 21:48:02 +00:00
c926869e6d28cd993cc4d3fc46ceec90e2d75f87
- Replace scripts/test_deployment.sh with scripts/check_deployment.py - Add command-line parameters: --dev, --prod, --endpoint, --max-retries, --retry-delay - Improve maintainability with Python instead of shell script - Add proper SSL certificate handling with fallback to unverified SSL - Add binary content support for image downloads - Add comprehensive error handling and colored output - Add type hints and better documentation - Update GitLab CI deployment verification jobs to use new Python script - Replace ~140 lines of inline shell script with simple Python calls - Change CI images from alpine:latest to python:3.11-alpine - Add Pillow dependency for image processing in CI - Maintain same retry logic and timing as before - Remove obsolete test runner scripts that were deleted earlier - All deployment tests now use consistent Python-based approach
ivatar / libravatar
Pipeline and coverage status
Reports / code documentation
Testing
Running Tests
Local Development (Recommended)
For local development, use the provided script to skip Bluesky tests that require external API credentials:
./scripts/run_tests_local.sh
This runs all tests except those marked with @pytest.mark.bluesky.
All Tests
To run all tests including Bluesky tests (requires Bluesky API credentials):
python3 manage.py test -v2
Specific Test Categories
# Run only Bluesky tests
python3 manage.py test ivatar.ivataraccount.test_views_bluesky -v2
# Run only file upload security tests
python3 manage.py test ivatar.test_file_security -v2
# Run only upload tests
python3 manage.py test ivatar.ivataraccount.test_views -v2
Test Markers
Tests are categorized using pytest markers:
@pytest.mark.bluesky: Tests requiring Bluesky API credentials@pytest.mark.slow: Long-running tests@pytest.mark.integration: Integration tests@pytest.mark.unit: Unit tests
Authors and contributors
Lead developer/Owner: Oliver Falk (aka ofalk or falko) - https://git.linux-kernel.at/oliver
Operations: Michal Novotny (aka clime)
QA: Tristan Le Guern (aka tleguern)
Frontend developer: Lukas Schönsgibl (aka hybridpicker), Niklas Poslovski (aka nipos)
Organisation/Meeting moderation: Lars Kruse (aka sumpfralle)
Initial developer: François Marier - https://fmarier.org/
Languages
PostScript
94.5%
Python
3.8%
CSS
0.7%
HTML
0.7%
JavaScript
0.3%