the application was rewritten a bit to be more testable

This commit is contained in:
Martin
2016-06-28 18:59:20 +02:00
parent 27542b9ebb
commit 2edf0ba8b0
14 changed files with 122 additions and 54 deletions
+12
View File
@@ -0,0 +1,12 @@
from esales.cluster import Cluster
class Esales(object):
def __init__(self, app=None):
self.cluster = Cluster()
if app:
self.init_app(app)
def init_app(self, app):
self.cluster.url = app.config.get('ESALES_URL')