Dropboxmock is a simple library that allow you to mock dropbox library in your test.
-
pip install https://github.com/elastic-coders/dropboxmock/archive/0.0.2.zip or add https://github.com/elastic-coders/dropboxmock/archive/0.0.2.zip to your project requirements
-
decorate your test wiht @mock_dbx_session and/or mock_dbx_client (or the other depending on what you need to mock)
-
run your test!
If you can't drop something in dropbox tell me what, so I can solve it!
If you want to clone the repo and test it:
- git clone https://github.com/elastic-coders/dropboxmock.git
- pip install -r requirements
- test with python manage.py test