Upgrade to Python 3.13 and latest dependencies + Add pytest test suite #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤖 Okteto AI Agent PR
Summary
This PR upgrades the entire application stack to the latest stable versions of Python, all dependencies, and infrastructure components. It also adds a comprehensive pytest-based test suite with 15 tests covering all application functionality.
Changes Made
🐍 Python & Application Dependencies
🗄️ Infrastructure Dependencies
🧪 Testing (New!)
Added comprehensive pytest test suite:
Test Dependencies Added:
🐛 Bug Fixes
myproject/models.py: Job model was hardcoded to always execute thepowerfunction regardless of job typetask = TASK_MAPPING['power']task = TASK_MAPPING[self.type]⚙️ Configuration Updates
Dockerfileto use Python 3.13 base imagedocker-compose.ymlwith latest infrastructure versionsokteto.yml:${OKTETO_BUILD_APP_IMAGE}pytest.inifor pytest configurationTesting in Okteto
✅ Deployed and validated in Okteto namespace
Test Results
Running Tests
Files Changed
Dockerfile- Updated to Python 3.13requirements.txt- Updated all dependenciesdocker-compose.yml- Updated infrastructure versionsokteto.yml- Added build config and pytest test setupmanifests/*.yaml- Updated to use built imagesmyproject/myproject/models.py- Fixed task mapping bugpytest.ini- New pytest configurationtests/- New test suite directoryconftest.py- Pytest fixturestest_api.py- 15 test casesDeployment Status
✅ Deployed and validated in Okteto namespace
This PR was created by the Okteto AI Powered by Claude Code