Tests tests tests and bugfixes

This commit is contained in:
Thomas Sileo
2018-05-28 19:46:23 +02:00
parent ff95e6773e
commit 9f9f79edb5
8 changed files with 258 additions and 38 deletions

View File

@@ -15,7 +15,7 @@ from utils.httpsig import HTTPSigAuth
from utils.opengraph import fetch_og_metadata
log = logging.getLogger()
log = logging.getLogger(__name__)
app = Celery('tasks', broker=os.getenv('MICROBLOGPUB_AMQP_BROKER', 'pyamqp://guest@localhost//'))
# app = Celery('tasks', broker='pyamqp://guest@rabbitmq//')
SigAuth = HTTPSigAuth(ID+'#main-key', KEY.privkey)
@@ -31,7 +31,6 @@ def post_to_inbox(self, payload, to):
'Accept': HEADERS[1],
'User-Agent': USER_AGENT,
})
print(resp)
log.info('resp=%s', resp)
log.info('resp_body=%s', resp.text)
resp.raise_for_status()