Add integration test for Astro CLI dev commands by pritt20 · Pull Request #1765 · astronomer/astro-cli
Description
This PR changes add integration tests and supporting configurations for Astro CLI local development commands.
🎟 Issue(s)
Related #1754
🧪 Functional Testing
Tested these ITs on local python virtual environment:
pytest -x -s -v dev_test.py
================================================================ test session starts =================================================================
platform darwin -- Python 3.11.9, pytest-8.3.4, pluggy-1.5.0 -- /Users/pritt/go/src/github.com/astronomer/astro-cli/integration-test/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/pritt/go/src/github.com/astronomer/astro-cli/integration-test
configfile: pyproject.toml
collected 9 items
dev_test.py::test_dev_init PASSED
dev_test.py::test_dev_start PASSED
dev_test.py::test_dev_ps PASSED
dev_test.py::test_dev_logs PASSED
dev_test.py::test_dev_parse PASSED
dev_test.py::test_dev_run PASSED
dev_test.py::test_dev_restart PASSED
dev_test.py::test_dev_export PASSED
dev_test.py::test_dev_kill PASSED
============================================= 9 passed in 65.32s (0:01:05) ==============================================
📸 Screenshots
Add screenshots to illustrate the validity of these changes.
📋 Checklist
- Rebased from the main (or release if patching) branch (before testing)
- Ran
make testbefore taking out of draft - Ran
make lintbefore taking out of draft - Added/updated applicable tests
- Tested against Astro-API (if necessary).
- Tested against Houston-API and Astronomer (if necessary).
- Communicated to/tagged owners of respective clients potentially impacted by these changes.
- Updated any related documentation