Commit Graph

12 Commits

Author SHA1 Message Date
aserper
230f28d54e Fix container logging visibility
Changes:
- Add -u flag to Python in Dockerfile to disable output buffering
- Add startup messages in main.py showing bot configuration
- Logs now appear immediately in kubectl logs output

This fixes the issue where no logs were visible when running
in Kubernetes pods due to Python's default stdout buffering.
2025-12-12 23:59:03 -05:00
aserper
0512aaf9b3 Fix test failures and code quality issues
- Fix XML parsing in integration tests using textwrap.dedent
- Fix Docker build test by adding load:true to buildx action
- Apply black formatting to all Python files
- All tests should now pass successfully
2025-12-12 23:34:10 -05:00
aserper
c8618ec3b7 Add comprehensive test suite with GitHub Actions CI/CD
- Refactor code into testable bot.py module with MastodonRSSBot class
- Create 20+ unit tests covering core functionality and edge cases
- Create 10+ integration tests for RSS parsing and Mastodon posting
- Add GitHub Actions workflow for automated testing
  - Unit tests on Python 3.10, 3.11, 3.12
  - Integration tests with mocked external services
  - Code quality checks (flake8, black, mypy)
  - Docker build validation
- Configure pytest with 80% minimum coverage requirement
- Add test dependencies in requirements-test.txt
- Update .gitignore to exclude test artifacts
- Add comprehensive TESTING.md documentation
- Add test status badge to README
- Maintain full backward compatibility with existing setup
2025-12-12 23:30:38 -05:00
Amit Serper
263a6a90b5 Added toot visibility environment variable 2024-01-02 12:56:29 -05:00
Amit Serper
b392c53129 Added toot visibility environment variable 2024-01-02 12:55:11 -05:00
Amit Serper
c3a2ab9329 Update main.py - removed unlisted 2024-01-01 13:36:22 -05:00
Amit Serper
94aee5e001 File is now saved persistenetly 2023-12-05 15:21:42 -05:00
Amit Serper
7e86e9ad97 Visibility of post set to unlisted to prevent spam of the local feed 2023-12-05 07:36:44 -05:00
Amit Serper
4411afb64c casting 2023-12-04 21:18:35 -05:00
Amit Serper
6eda268557 changed post text 2023-12-04 21:07:16 -05:00
Amit Serper
d7a71f9a30 import time 2023-12-04 21:03:13 -05:00
Amit Serper
7ab5401c97 initial commit 2023-12-04 20:51:18 -05:00