scottwernervt / cloudstorage

Unified cloud storage API for storage services.
http://cloudstorage.readthedocs.io/en/latest/
MIT License
93 stars 27 forks source link

Tests: test_container_delete_not_empty failing can cause other tests to fail #9

Closed scottwernervt closed 7 years ago

scottwernervt commented 7 years ago

Bug If the test test_container_delete_not_empty fails and the container is actually deleted, the next tests relying on that same container will also fail. This is due to the container fixture having scope='module'.

Solutions

  1. Change scope='module' to scope='function'.
  2. Make a new container fixture for tests that delete them.