Skip to content

Commit

Permalink
Fixed config in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
emxsys committed Aug 28, 2020
1 parent 5850d5c commit 97dbcb6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/test_webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ def myapp():
app.secret_key = get_random_string()
with app.app_context():

master_config = {
"DB_FILE": db_path,
}

app.config['MASTER_CONFIG'] = master_config
app.config["TESTING"] = True
app.config["DEBUG"] = True
app.config['DATABASE'] = db_path
app.config["DB_FILE"] = db_path
# ~ app.config["VOICE_MAIL_MESSAGE_FOLDER"] = "../data/messages"
# ~ app.config["MESSAGE_INDICATOR_LED"] = MessageIndicator(10)

get_db().executescript(_data_sql)

Expand All @@ -77,5 +78,3 @@ def test_dashboard(client):
assert b"Statistics" in response.data
assert b"Recent Calls" in response.data
assert b"Calls per Day" in response.data


0 comments on commit 97dbcb6

Please sign in to comment.