Skip to content

Instantly share code, notes, and snippets.

@douglatornell
douglatornell / gist:2728853
Created May 19, 2012 03:22
Typical Traceback of Blogofile plugins Branch Test Error (py.test)
With Python 3.2 py.test as test runner:
___________________________ TestContent.testUpperCaseAutoPermalink ___________________________
self = <blogofile.tests.test_content.TestContent testMethod=testUpperCaseAutoPermalink>
def testUpperCaseAutoPermalink(self):
"""Auto generated permalinks should have title and filenames lower case
(but not the rest of the URL)"""
main.main("init blog_unit_test")
@douglatornell
douglatornell / gist:2728814
Created May 19, 2012 03:09
Typical Traceback of Blogofile plugins Branch Test Error (unittest discover)
With Python 3.2 unittest discover as test runner:
======================================================================
ERROR: testUpperCaseAutoPermalink (blogofile.tests.test_content.TestContent)
Auto generated permalinks should have title and filenames lower case
----------------------------------------------------------------------
Traceback (most recent call last):
File "blogofile/tests/test_content.py", line 79, in testUpperCaseAutoPermalink
main.main("init blog_unit_test")
File "blogofile/main.py", line 186, in main
@douglatornell
douglatornell / incremental.py
Created March 18, 2012 17:40
Options for keys list for buildbot try job parser
# Incremental:
v1_keys = ['jobid', 'branch', 'baserev', 'patch_level', 'patch_body']
v2_keys = v1_keys + ['repository', 'project']
v3_keys = v2_keys + ['who']
v4_keys = v3_keys + ['comment']
keys = [v1_keys, v2_keys, v3_keys, v4_keys]