francescou / docker-compose-ui

web interface for Docker Compose
http://francescou.github.io/docker-compose-ui
MIT License
1.54k stars 228 forks source link

Add tests for core API endpoints #82

Open MichaelMackus opened 7 years ago

MichaelMackus commented 7 years ago

We should add tests for the core API endpoints (i.e. /api/v1/ URLs). This way we can hopefully prevent BC breaks in the future.

francescou commented 7 years ago

I agree with you. Do you have an idea about how to implement the unit tests?

I was thinking about something like this: https://github.com/kevana/ui-for-docker/blob/master/test/unit/app/components/statsController.spec.js

MichaelMackus commented 7 years ago

I was thinking more from the Python side, but I suppose it would make sense to test directly in angular/JS as well.

MichaelMackus commented 7 years ago

Flake8 could be useful in addition