This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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] |
NewerOlder