diff --git a/README.md b/README.md index bc22b349..c0eec976 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ Now it's time to configure AMIV API. Create a file `config.py` ROOT_PASSWORD = 'root' # MongoDB Configuration -MONGO_HOST = 'mongodb' # or 'localhost' if you run the API from Python +MONGO_HOST = 'mongodb' # or 'localhost' if you run the database locally MONGO_PORT = 27017 MONGO_DBNAME = 'amivapi' MONGO_USERNAME = 'amivapi' diff --git a/amivapi/tests/events/test_emails.py b/amivapi/tests/events/test_emails.py index a635e296..1546d048 100644 --- a/amivapi/tests/events/test_emails.py +++ b/amivapi/tests/events/test_emails.py @@ -76,7 +76,7 @@ def test_email_signup_delete(self): self.app.config.pop('SIGNUP_DELETED_REDIRECT') self.api.get('/eventsignups/%s' % signup['_id'], status_code=200) self.api.get('/delete_signup/%s' % token, status_code=200) - self.api.post('/delete_confirmed/%s' % token, status_code=302) + self.api.post('/delete_confirmed/%s' % token, status_code=200) # Check that signup was deleted self.api.get('/eventsignups/%s' % signup['_id'], status_code=404)