Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit 8dbe85f

Browse files
Rewrite test_emails
1 parent f10dc1d commit 8dbe85f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Now it's time to configure AMIV API. Create a file `config.py`
107107
ROOT_PASSWORD = 'root'
108108

109109
# MongoDB Configuration
110-
MONGO_HOST = 'mongodb' # or 'localhost' if you run the API from Python
110+
MONGO_HOST = 'mongodb' # or 'localhost' if you run the database locally
111111
MONGO_PORT = 27017
112112
MONGO_DBNAME = 'amivapi'
113113
MONGO_USERNAME = 'amivapi'

amivapi/tests/events/test_emails.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_email_signup_delete(self):
7676
self.app.config.pop('SIGNUP_DELETED_REDIRECT')
7777
self.api.get('/eventsignups/%s' % signup['_id'], status_code=200)
7878
self.api.get('/delete_signup/%s' % token, status_code=200)
79-
self.api.post('/delete_confirmed/%s' % token, status_code=302)
79+
self.api.post('/delete_confirmed/%s' % token, status_code=200)
8080

8181
# Check that signup was deleted
8282
self.api.get('/eventsignups/%s' % signup['_id'], status_code=404)

0 commit comments

Comments
 (0)