ehmatthes / django-simple-deploy

A reusable Django app that configures your project for deployment
BSD 3-Clause "New" or "Revised" License
304 stars 26 forks source link

Uncouple tests from core #330

Closed ehmatthes closed 1 month ago

ehmatthes commented 1 month ago

Right now, integration and e2e tests are tightly coupled with django-simple-deploy core. Uncouple these tests, so all platform-specific integration and e2e tests are within the plugin directories.

ehmatthes commented 1 month ago

Integration tests

ehmatthes commented 1 month ago

Uncouple Fly.io integration tests

$ pytest simple_deploy/management/commands/fly_io/tests/integration_tests -x
...
    import integration_tests.utils.it_helper_functions as hf
E   ModuleNotFoundError: No module named 'integration_tests'
ehmatthes commented 1 month ago

Notes - testing external plugins

ehmatthes commented 1 month ago

Try uv

ehmatthes commented 1 month ago

Uncouple Fly tests - simpler approach

Just find the simplest way to make integration tests work again, with all tests in the plugin dirs, but assume they're in the same repo.

ehmatthes commented 1 month ago

Uncouple Fly e2e tests

Just make them work from within the management/commands/fly_io/ dir.

ehmatthes commented 1 month ago

Closed by #332.