Created database class.
Tidied app.py so that it only contains controller logic. Added error handling for if number of entrants exceeds number of possible identifiers Updated test coverage to test for all identifiers, as well as error case
This commit is contained in:
6
web/config.py
Normal file
6
web/config.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import os
|
||||
|
||||
|
||||
class BaseConfig(object):
|
||||
TESTING = True
|
||||
DB_PATH = os.environ.get('HBC_DB_PATH', 'tests/')
|
||||
Reference in New Issue
Block a user