Skip to content

Instantly share code, notes, and snippets.

View bepetersn's full-sized avatar

Brian Everett Peterson bepetersn

View GitHub Profile
@bepetersn
bepetersn / _cpd.html
Last active August 29, 2015 13:58
Unhelpful Jinja2 Stack Trace
{% extends "_base.html" %}
{% from 'macros.html' import inventory with context %}
{% block preview %}{% endblock preview %}
{% block css %}
{{ super() }}
<link rel="stylesheet" type="text/css" href="css/simple.css" />
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
@bepetersn
bepetersn / test_results.txt
Created May 13, 2014 06:14
test_pgsql_installation fails on the server, while apparently trying to load our actual database
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- pytest-2.4.2
collected 16 items
tests/test_ccj_v1_0.py ..
tests/test_dpc_api.py ....
tests/test_dpc_model.py ....
tests/test_pgsql_installation.py F
tests/test_scraper.py ...
tests/test_summarize_daily_population.py ..
@bepetersn
bepetersn / traceback.txt
Created August 7, 2014 19:45
Failure of "test_user_model" Test
======================================================================
ERROR: test_user_model (test_models.TestUserMode)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/brian/Code/printwithme/tests/test_models.py", line 16, in test_user_model
assert not User.query.all()
AttributeError: 'NoneType' object has no attribute 'all'