Merge lp:~ev/uci-engine/fix-pep8-and-pyflakes into lp:uci-engine

Proposed by Evan
Status: Needs review
Proposed branch: lp:~ev/uci-engine/fix-pep8-and-pyflakes
Merge into: lp:uci-engine
Diff against target: 511 lines (+39/-222)
15 files modified
bin/engine_health.py (+1/-1)
branch-source-builder/bin/check_bsbuilder.py (+1/-1)
branch-source-builder/cupstream2distro/packageinppa.py (+0/-2)
charms/precise/key-secret-subordinate/unit_tests/test_hooks.py (+1/-1)
charms/precise/system-image-server/hooks/hooks.py (+6/-14)
charms/precise/webui/unit_tests/test_hooks.py (+0/-1)
cupstream2distro/tests/unit/test_resignpackage.py (+1/-1)
docs/conf.py (+20/-191)
image-builder/imagebuilder/run_worker.py (+1/-1)
lander/setup.py (+0/-1)
nf-stats-service/nfss/__init__.py (+2/-0)
ticket_system/project/tests.py (+1/-1)
ticket_system/ticket/tests/test_style.py (+1/-1)
ticket_system/ticket/tests/test_user_info.py (+2/-2)
ticket_system/ticket_system/settings.py (+2/-4)
To merge this branch: bzr merge lp:~ev/uci-engine/fix-pep8-and-pyflakes
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Canonical CI Engineering Pending
Review via email: mp+242806@code.launchpad.net

Commit message

PEP8 and pyflakes fixes.

Description of the change

I fixed some pyflakes and pep8 errors on the flight out to Austin.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:901
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/1747/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/1747/rebuild

review: Approve (continuous-integration)
Revision history for this message
Robert Bruce Park (robru) wrote :

Considering that everything under cupstream2distro/ directory is an abandoned fork of lp:cupstream2distro, I hope you didn't waste too much time on that. It's probably worthwhile to delete that code or at least re-import it from our trunk, because your copy is just rotting away.

Revision history for this message
Evan (ev) wrote :

On 25 November 2014 at 20:16, ♫ Robert Bruce Park ♫
<email address hidden> wrote:
> Considering that everything under cupstream2distro/ directory is an abandoned fork of lp:cupstream2distro, I hope you didn't waste too much time on that. It's probably worthwhile to delete that code or at least re-import it from our trunk, because your copy is just rotting away.

I'm not deeply familiar with our cupstream2distro work. That's more a
question for Ursula or Francis. Guys?

Unmerged revisions

901. By Evan

Revert pyflakes-the-world change.

900. By Evan

Merge with trunk.

899. By Evan

Create a couple of exceptions to the pyflakes tests.

898. By Evan

Use the exclusion filter for pyflakes tests.

897. By Evan

Add a pyflakes check.

896. By Evan

Add a rationale for the new style test.

895. By Evan

Fix pep8 in time_sorted_tests tests.

894. By Evan

Make pep8 an opt-out, rather than opt-in test for python files. Test non-packaged python code.

893. By Evan

pyflakes fixes.

892. By Evan

pep8 fixes.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bin/engine_health.py'
--- bin/engine_health.py 2014-07-25 23:53:47 +0000
+++ bin/engine_health.py 2014-11-25 16:38:40 +0000
@@ -59,7 +59,7 @@
59 # Health check always expects 'OK' or 'FAILED' in the first line of the59 # Health check always expects 'OK' or 'FAILED' in the first line of the
60 # result file.60 # result file.
61 result_file_contents = open(result_file).readlines()61 result_file_contents = open(result_file).readlines()
62 if not 'OK' in result_file_contents[0]:62 if 'OK' not in result_file_contents[0]:
63 # Printing only the first line of the result file because nagios63 # Printing only the first line of the result file because nagios
64 # displays limited output on its interface (one line). Concatenating64 # displays limited output on its interface (one line). Concatenating
65 # the whole file on a single message would produce a very confusing65 # the whole file on a single message would produce a very confusing
6666
=== modified file 'branch-source-builder/bin/check_bsbuilder.py'
--- branch-source-builder/bin/check_bsbuilder.py 2014-10-29 15:06:26 +0000
+++ branch-source-builder/bin/check_bsbuilder.py 2014-11-25 16:38:40 +0000
@@ -158,7 +158,7 @@
158 # run `worker.handle_request` in an isolated GPG environment158 # run `worker.handle_request` in an isolated GPG environment
159 # so it has a chance to auto-retrieve missing keys from the159 # so it has a chance to auto-retrieve missing keys from the
160 # keyserver.160 # keyserver.
161 with gpg.GnupgEnvironment() as gnupg:161 with gpg.GnupgEnvironment():
162 (cb, result) = worker.handle_request(params, log)162 (cb, result) = worker.handle_request(params, log)
163 except Exception as exc:163 except Exception as exc:
164 message = 'BSB raised: {}'.format(exc.message)164 message = 'BSB raised: {}'.format(exc.message)
165165
=== modified file 'branch-source-builder/cupstream2distro/packageinppa.py'
--- branch-source-builder/cupstream2distro/packageinppa.py 2014-04-16 18:36:03 +0000
+++ branch-source-builder/cupstream2distro/packageinppa.py 2014-11-25 16:38:40 +0000
@@ -179,9 +179,7 @@
179179
180 # Try to see if all binaries availables for this arch are built, including arch:all on other archs180 # Try to see if all binaries availables for this arch are built, including arch:all on other archs
181 status = self.current_status181 status = self.current_status
182 at_least_one_published_binary = False
183 for binary in self.source.getPublishedBinaries():182 for binary in self.source.getPublishedBinaries():
184 at_least_one_published_binary = True
185 # all binaries for an arch are published at the same time183 # all binaries for an arch are published at the same time
186 # launchpad is lying, it's telling that archs not in the ppa are built (for arch:all). Even for non supported arch!184 # launchpad is lying, it's telling that archs not in the ppa are built (for arch:all). Even for non supported arch!
187 # for instance, we can have the case of self.arch_all_arch (arch:all), built before the others and amd64 will be built for it185 # for instance, we can have the case of self.arch_all_arch (arch:all), built before the others and amd64 will be built for it
188186
=== modified file 'charms/precise/key-secret-subordinate/unit_tests/test_hooks.py'
--- charms/precise/key-secret-subordinate/unit_tests/test_hooks.py 2014-07-22 12:38:30 +0000
+++ charms/precise/key-secret-subordinate/unit_tests/test_hooks.py 2014-11-25 16:38:40 +0000
@@ -113,7 +113,7 @@
113 def test_juju_info_joined(self):113 def test_juju_info_joined(self):
114 # Keys are placed immediatelly when the subordinate charm is bound.114 # Keys are placed immediatelly when the subordinate charm is bound.
115 os.makedirs(self.service_dir)115 os.makedirs(self.service_dir)
116 self.config.return_value['ssh-private-key'] = base64.b64encode(116 self.config.return_value['ssh-private-key'] = base64.b64encode(
117 'secret!')117 'secret!')
118118
119 hooks.hooks.execute(['hooks/juju-info-relation-joined'])119 hooks.hooks.execute(['hooks/juju-info-relation-joined'])
120120
=== modified file 'charms/precise/system-image-server/hooks/hooks.py'
--- charms/precise/system-image-server/hooks/hooks.py 2014-10-14 09:04:09 +0000
+++ charms/precise/system-image-server/hooks/hooks.py 2014-11-25 16:38:40 +0000
@@ -16,11 +16,6 @@
16 return os.path.join(charmconfig['install_root'], unit)16 return os.path.join(charmconfig['install_root'], unit)
1717
1818
19def _install_from_tarball(charmconfig, upgrade):
20 #Do we need this?
21 pass
22
23
24def _install_from_bzr(charmconfig, upgrade):19def _install_from_bzr(charmconfig, upgrade):
25 log('grabbing service from bzr...', 'INFO')20 log('grabbing service from bzr...', 'INFO')
26 sdir = _service_dir(charmconfig)21 sdir = _service_dir(charmconfig)
@@ -77,16 +72,17 @@
7772
78def _generate_keys(charmconfig):73def _generate_keys(charmconfig):
79 log('generating keys...', 'INFO')74 log('generating keys...', 'INFO')
80 #haveged is just an entropy generator75 # haveged is just an entropy generator
81 subprocess.check_output(['haveged'])76 subprocess.check_output(['haveged'])
82 srvdir = _service_dir(charmconfig)77 srvdir = _service_dir(charmconfig)
83 #the system-image tools unfortunately really want to run from this dir78 # the system-image tools unfortunately really want to run from this dir
84 os.chdir(srvdir)79 os.chdir(srvdir)
85 out = subprocess.check_output(['{}/tests/generate-keys'.format(srvdir)])80 out = subprocess.check_output(['{}/tests/generate-keys'.format(srvdir)])
86 log(out, 'INFO')81 log(out, 'INFO')
87 #copy the keys we just generated into the proper location82 # copy the keys we just generated into the proper location
88 shutil.rmtree('{}/secret/gpg/keys/'.format(srvdir))83 shutil.rmtree('{}/secret/gpg/keys/'.format(srvdir))
89 shutil.copytree('{}/tests/keys'.format(srvdir), '{}/secret/gpg/keys/'.format(srvdir))84 dest = '{}/secret/gpg/keys/'.format(srvdir)
85 shutil.copytree('{}/tests/keys'.format(srvdir), dest)
90 subprocess.check_output(['{}/bin/generate-keyrings'.format(srvdir)])86 subprocess.check_output(['{}/bin/generate-keyrings'.format(srvdir)])
91 log(out, 'INFO')87 log(out, 'INFO')
9288
@@ -99,11 +95,7 @@
99 charmhelpers.fetch.configure_sources(update=True)95 charmhelpers.fetch.configure_sources(update=True)
100 charmhelpers.fetch.apt_install(pkgs)96 charmhelpers.fetch.apt_install(pkgs)
10197
102 if charmconfig.get('vcs') == 'tarball':98 _install_from_bzr(charmconfig, upgrade)
103 _install_from_tarball(charmconfig, upgrade)
104 else:
105 _install_from_bzr(charmconfig, upgrade)
106
107 _write_system_image_config(charmconfig)99 _write_system_image_config(charmconfig)
108 _generate_keys(charmconfig)100 _generate_keys(charmconfig)
109 _create_stable_channel(charmconfig)101 _create_stable_channel(charmconfig)
110102
=== modified file 'charms/precise/webui/unit_tests/test_hooks.py'
--- charms/precise/webui/unit_tests/test_hooks.py 2014-10-08 15:37:26 +0000
+++ charms/precise/webui/unit_tests/test_hooks.py 2014-11-25 16:38:40 +0000
@@ -119,4 +119,3 @@
119119
120 with hooks.status_urls() as data:120 with hooks.status_urls() as data:
121 self.assertEqual({}, data)121 self.assertEqual({}, data)
122
123122
=== modified file 'cupstream2distro/tests/unit/test_resignpackage.py'
--- cupstream2distro/tests/unit/test_resignpackage.py 2014-06-17 12:25:23 +0000
+++ cupstream2distro/tests/unit/test_resignpackage.py 2014-11-25 16:38:40 +0000
@@ -14,7 +14,7 @@
14# You should have received a copy of the GNU Affero General Public License14# You should have received a copy of the GNU Affero General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.15# along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
17from . import BaseUnitTestCase, BaseUnitTestCaseWithErrors17from . import BaseUnitTestCase
1818
19import subprocess19import subprocess
20import os20import os
2121
=== modified file 'docs/conf.py'
--- docs/conf.py 2014-10-07 10:04:01 +0000
+++ docs/conf.py 2014-11-25 16:38:40 +0000
@@ -3,28 +3,17 @@
3# Ubuntu CI Engine documentation build configuration file, created by3# Ubuntu CI Engine documentation build configuration file, created by
4# sphinx-quickstart on Thu Nov 14 11:38:40 2013.4# sphinx-quickstart on Thu Nov 14 11:38:40 2013.
5#5#
6# This file is execfile()d with the current directory set to its containing dir.6# This file is execfile()d with the current directory set to its containing
7# dir.
7#8#
8# Note that not all possible configuration values are present in this9# Note that not all possible configuration values are present in this
9# autogenerated file.10# autogenerated file.
10#11#
11# All configuration values have a default; values that are commented out12# All configuration values have a default; values that are commented out serve
12# serve to show the default.13# to show the default.
1314
14import sys, os15# Add any Sphinx extension module names here, as strings. They can be
1516# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
16# If extensions (or modules to document with autodoc) are in another directory,
17# add these directories to sys.path here. If the directory is relative to the
18# documentation root, use os.path.abspath to make it absolute, like shown here.
19#sys.path.insert(0, os.path.abspath('.'))
20
21# -- General configuration -----------------------------------------------------
22
23# If your documentation needs a minimal Sphinx version, state it here.
24#needs_sphinx = '1.0'
25
26# Add any Sphinx extension module names here, as strings. They can be extensions
27# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28extensions = [17extensions = [
29 'sphinx.ext.autodoc',18 'sphinx.ext.autodoc',
30]19]
@@ -35,9 +24,6 @@
35# The suffix of source filenames.24# The suffix of source filenames.
36source_suffix = '.rst'25source_suffix = '.rst'
3726
38# The encoding of source files.
39#source_encoding = 'utf-8-sig'
40
41# The master toctree document.27# The master toctree document.
42master_doc = 'index'28master_doc = 'index'
4329
@@ -45,54 +31,15 @@
45project = u'Ubuntu CI Engine'31project = u'Ubuntu CI Engine'
46copyright = u'2013-2014, Canonical Ltd.'32copyright = u'2013-2014, Canonical Ltd.'
4733
48# The version info for the project you're documenting, acts as replacement for
49# |version| and |release|, also used in various other places throughout the
50# built documents.
51#
52# The short X.Y version.
53#version = '0.0'
54# The full version, including alpha/beta/rc tags.
55#release = '0.0'
56
57# The language for content autogenerated by Sphinx. Refer to documentation
58# for a list of supported languages.
59#language = None
60
61# There are two options for replacing |today|: either, you set today to some
62# non-false value, then it is used:
63#today = ''
64# Else, today_fmt is used as the format for a strftime call.
65#today_fmt = '%B %d, %Y'
66
67# List of patterns, relative to source directory, that match files and34# List of patterns, relative to source directory, that match files and
68# directories to ignore when looking for source files.35# directories to ignore when looking for source files.
69exclude_patterns = ['_build']36exclude_patterns = ['_build']
7037
71# The reST default role (used for this markup: `text`) to use for all documents.
72#default_role = None
73
74# If true, '()' will be appended to :func: etc. cross-reference text.
75#add_function_parentheses = True
76
77# If true, the current module name will be prepended to all description
78# unit titles (such as .. function::).
79#add_module_names = True
80
81# If true, sectionauthor and moduleauthor directives will be shown in the
82# output. They are ignored by default.
83#show_authors = False
84
85# The name of the Pygments (syntax highlighting) style to use.38# The name of the Pygments (syntax highlighting) style to use.
86pygments_style = 'sphinx'39pygments_style = 'sphinx'
8740
88# A list of ignored prefixes for module index sorting.41# The theme to use for HTML and HTML Help pages. See the documentation for a
89#modindex_common_prefix = []42# list of builtin themes.
90
91
92# -- Options for HTML output ---------------------------------------------------
93
94# The theme to use for HTML and HTML Help pages. See the documentation for
95# a list of builtin themes.
96try:43try:
97 import sphinx_bootstrap_theme44 import sphinx_bootstrap_theme
98except ImportError:45except ImportError:
@@ -110,150 +57,32 @@
110 'globaltoc_depth': -1,57 'globaltoc_depth': -1,
111 }58 }
11259
113# Theme options are theme-specific and customize the look and feel of a theme
114# further. For a list of options available for each theme, see the
115# documentation.
116#html_theme_options = {}
117
118# Add any paths that contain custom themes here, relative to this directory.
119#html_theme_path = []
120
121# The name for this set of Sphinx documents. If None, it defaults to
122# "<project> v<release> documentation".
123#html_title = None
124
125# A shorter title for the navigation bar. Default is the same as html_title.
126#html_short_title = None
127
128# The name of an image file (relative to this directory) to place at the top
129# of the sidebar.
130#html_logo = None
131
132# The name of an image file (within the static path) to use as favicon of the
133# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
134# pixels large.
135#html_favicon = None
136
137# Add any paths that contain custom static files (such as style sheets) here,60# Add any paths that contain custom static files (such as style sheets) here,
138# relative to this directory. They are copied after the builtin static files,61# relative to this directory. They are copied after the builtin static files,
139# so a file named "default.css" will overwrite the builtin "default.css".62# so a file named "default.css" will overwrite the builtin "default.css".
140html_static_path = ['_static']63html_static_path = ['_static']
14164
142# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
143# using the given strftime format.
144#html_last_updated_fmt = '%b %d, %Y'
145
146# If true, SmartyPants will be used to convert quotes and dashes to
147# typographically correct entities.
148#html_use_smartypants = True
149
150# Custom sidebar templates, maps document names to template names.
151#html_sidebars = {}
152
153# Additional templates that should be rendered to pages, maps page names to
154# template names.
155#html_additional_pages = {}
156
157# If false, no module index is generated.
158#html_domain_indices = True
159
160# If false, no index is generated.
161#html_use_index = True
162
163# If true, the index is split into individual pages for each letter.
164#html_split_index = False
165
166# If true, links to the reST sources are added to the pages.
167#html_show_sourcelink = True
168
169# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
170#html_show_sphinx = True
171
172# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
173#html_show_copyright = True
174
175# If true, an OpenSearch description file will be output, and all pages will
176# contain a <link> tag referring to it. The value of this option must be the
177# base URL from which the finished HTML is served.
178#html_use_opensearch = ''
179
180# This is the file name suffix for HTML files (e.g. ".xhtml").
181#html_file_suffix = None
182
183# Output file base name for HTML help builder.65# Output file base name for HTML help builder.
184htmlhelp_basename = 'UbuntuCIEnginedoc'66htmlhelp_basename = 'UbuntuCIEnginedoc'
18567
18668# Grouping the document tree into LaTeX files. List of tuples (source start
187# -- Options for LaTeX output --------------------------------------------------69# file, target name, title, author, documentclass [howto/manual]).
188
189latex_elements = {
190# The paper size ('letterpaper' or 'a4paper').
191#'papersize': 'letterpaper',
192
193# The font size ('10pt', '11pt' or '12pt').
194#'pointsize': '10pt',
195
196# Additional stuff for the LaTeX preamble.
197#'preamble': '',
198}
199
200# Grouping the document tree into LaTeX files. List of tuples
201# (source start file, target name, title, author, documentclass [howto/manual]).
202latex_documents = [70latex_documents = [
203 ('index', 'UbuntuCIEngine.tex', u'Ubuntu CI Engine Documentation',71 ('index', 'UbuntuCIEngine.tex', u'Ubuntu CI Engine Documentation',
204 u'Canonical CI Engineering Team', 'manual'),72 u'Canonical CI Engineering Team', 'manual'),
205]73]
20674
207# The name of an image file (relative to this directory) to place at the top of75# One entry per manual page. List of tuples (source start file, name,
208# the title page.76# description, authors, manual section).
209#latex_logo = None
210
211# For "manual" documents, if this is true, then toplevel headings are parts,
212# not chapters.
213#latex_use_parts = False
214
215# If true, show page references after internal links.
216#latex_show_pagerefs = False
217
218# If true, show URL addresses after external links.
219#latex_show_urls = False
220
221# Documents to append as an appendix to all manuals.
222#latex_appendices = []
223
224# If false, no module index is generated.
225#latex_domain_indices = True
226
227
228# -- Options for manual page output --------------------------------------------
229
230# One entry per manual page. List of tuples
231# (source start file, name, description, authors, manual section).
232man_pages = [77man_pages = [
233 ('index', 'ubuntuciengine', u'Ubuntu CI Engine Documentation',78 ('index', 'ubuntuciengine', u'Ubuntu CI Engine Documentation',
234 [u'Canonical CI Engineering Team'], 1)79 [u'Canonical CI Engineering Team'], 1)
235]80]
23681
237# If true, show URL addresses after external links.82# Grouping the document tree into Texinfo files. List of tuples (source start
238#man_show_urls = False83# file, target name, title, author, dir menu entry, description, category)
239
240
241# -- Options for Texinfo output ------------------------------------------------
242
243# Grouping the document tree into Texinfo files. List of tuples
244# (source start file, target name, title, author,
245# dir menu entry, description, category)
246texinfo_documents = [84texinfo_documents = [
247 ('index', 'UbuntuCIEngine', u'Ubuntu CI Engine Documentation',85 ('index', 'UbuntuCIEngine', u'Ubuntu CI Engine Documentation',
248 u'Canonical CI Engineering Team', 'UbuntuCIEngine', 'One line description of project.',86 u'Canonical CI Engineering Team', 'UbuntuCIEngine',
249 'Miscellaneous'),87 'One line description of project.', 'Miscellaneous'),
250]88]
251
252# Documents to append as an appendix to all manuals.
253#texinfo_appendices = []
254
255# If false, no module index is generated.
256#texinfo_domain_indices = True
257
258# How to display URL addresses: 'footnote', 'no', or 'inline'.
259#texinfo_show_urls = 'footnote'
26089
=== modified file 'image-builder/imagebuilder/run_worker.py'
--- image-builder/imagebuilder/run_worker.py 2014-10-29 16:43:39 +0000
+++ image-builder/imagebuilder/run_worker.py 2014-11-25 16:38:40 +0000
@@ -42,7 +42,7 @@
42 log.info(msg)42 log.info(msg)
43 amqp_utils.progress_update(trigger, {'message': msg})43 amqp_utils.progress_update(trigger, {'message': msg})
4444
45 #Check API version45 # Check API version
46 api = params.get('api_version')46 api = params.get('api_version')
47 if api == '20140721':47 if api == '20140721':
48 image_id = get_image(image, status_cb)48 image_id = get_image(image, status_cb)
4949
=== modified file 'lander/setup.py'
--- lander/setup.py 2014-10-15 07:10:31 +0000
+++ lander/setup.py 2014-11-25 16:38:40 +0000
@@ -18,7 +18,6 @@
18import sys18import sys
1919
2020
21
22HERE = os.path.abspath(os.path.dirname(__file__))21HERE = os.path.abspath(os.path.dirname(__file__))
23# get ci_utils.setuptools on the path22# get ci_utils.setuptools on the path
24sys.path.append(os.path.join(HERE, '..', 'ci-utils'))23sys.path.append(os.path.join(HERE, '..', 'ci-utils'))
2524
=== modified file 'nf-stats-service/nfss/__init__.py'
--- nf-stats-service/nfss/__init__.py 2014-08-26 14:49:08 +0000
+++ nf-stats-service/nfss/__init__.py 2014-11-25 16:38:40 +0000
@@ -36,6 +36,8 @@
36 config.scan()36 config.scan()
37 try:37 try:
38 import pyramid_debugtoolbar38 import pyramid_debugtoolbar
39 # Make pyflakes happy with a no-op statement.
40 pyramid_debugtoolbar
39 config.include('pyramid_debugtoolbar')41 config.include('pyramid_debugtoolbar')
40 config.registry.settings['debugtoolbar.hosts'].append('10.0.0.0/16')42 config.registry.settings['debugtoolbar.hosts'].append('10.0.0.0/16')
41 except ImportError:43 except ImportError:
4244
=== modified file 'ticket_system/project/tests.py'
--- ticket_system/project/tests.py 2014-02-15 12:06:40 +0000
+++ ticket_system/project/tests.py 2014-11-25 16:38:40 +0000
@@ -173,7 +173,7 @@
173class TestPep8(styles.TestPep8):173class TestPep8(styles.TestPep8):
174174
175 packages = [project]175 packages = [project]
176 exclude = ['migrations/']176 exclude = ['migrations']
177177
178178
179class TestPyflakes(styles.TestPyflakes):179class TestPyflakes(styles.TestPyflakes):
180180
=== modified file 'ticket_system/ticket/tests/test_style.py'
--- ticket_system/ticket/tests/test_style.py 2014-10-07 10:04:01 +0000
+++ ticket_system/ticket/tests/test_style.py 2014-11-25 16:38:40 +0000
@@ -26,7 +26,7 @@
26class TestPep8(styles.TestPep8):26class TestPep8(styles.TestPep8):
2727
28 packages = [ticket]28 packages = [ticket]
29 exclude = ['migrations/']29 exclude = ['migrations']
3030
3131
32class TestPyflakes(styles.TestPyflakes):32class TestPyflakes(styles.TestPyflakes):
3333
=== modified file 'ticket_system/ticket/tests/test_user_info.py'
--- ticket_system/ticket/tests/test_user_info.py 2014-11-03 20:50:01 +0000
+++ ticket_system/ticket/tests/test_user_info.py 2014-11-25 16:38:40 +0000
@@ -85,7 +85,7 @@
85 self.assertEqual('', self._get_current_username())85 self.assertEqual('', self._get_current_username())
8686
87 def test_logout_works(self):87 def test_logout_works(self):
88 #'logout' inconditionally logs the user out.88 # 'logout' inconditionally logs the user out.
89 self.assertLoggedIn('test')89 self.assertLoggedIn('test')
9090
91 # By default the 'logout' page redirects to the (webui) site root91 # By default the 'logout' page redirects to the (webui) site root
@@ -97,7 +97,7 @@
97 self.assertNotLoggedIn()97 self.assertNotLoggedIn()
9898
99 def test_logout_supports_next(self):99 def test_logout_supports_next(self):
100 #'logout' can optionally redirect users to another page, normally100 # 'logout' can optionally redirect users to another page, normally
101 # where they came from, via 'next' GET parameter.101 # where they came from, via 'next' GET parameter.
102 self.assertLoggedIn('test')102 self.assertLoggedIn('test')
103103
104104
=== modified file 'ticket_system/ticket_system/settings.py'
--- ticket_system/ticket_system/settings.py 2014-10-07 10:04:01 +0000
+++ ticket_system/ticket_system/settings.py 2014-11-25 16:38:40 +0000
@@ -40,8 +40,8 @@
40 with open(path) as f:40 with open(path) as f:
41 config = yaml.safe_load(f.read())41 config = yaml.safe_load(f.read())
42 except:42 except:
43 print('Unable to use unit_config(%s), defaulting values' % path,43 msg = 'Unable to use unit_config(%s), defaulting values' % path
44 file=sys.stderr)44 print(msg, file=sys.stderr)
45 return config45 return config
46_cfg = _unit_config()46_cfg = _unit_config()
4747
@@ -120,7 +120,6 @@
120STATICFILES_FINDERS = (120STATICFILES_FINDERS = (
121 'django.contrib.staticfiles.finders.FileSystemFinder',121 'django.contrib.staticfiles.finders.FileSystemFinder',
122 'django.contrib.staticfiles.finders.AppDirectoriesFinder',122 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
123 #'django.contrib.staticfiles.finders.DefaultStorageFinder',
124)123)
125124
126# Make this unique, and don't share it with anybody.125# Make this unique, and don't share it with anybody.
@@ -170,7 +169,6 @@
170)169)
171170
172LOCAL_APPS = (171LOCAL_APPS = (
173 #'people',
174 'project',172 'project',
175 'ticket',173 'ticket',
176)174)

Subscribers

People subscribed via source and target branches

to all changes: