Skip to content

Commit 694292e

Browse files
authored
Merge pull request #134 from neverpanic/improve-coverage
tests: Add test coverage for GitHubPolicy
2 parents deaec86 + b98c962 commit 694292e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

runtests.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,14 @@ def createTracEnvironment(cls, **kwargs):
166166
conf.set('repositories', 'nogh.dir', os.path.realpath('%s/.git' % NOGHGIT))
167167
conf.set('repositories', 'nogh.type', 'git')
168168

169+
# Show changed files in timeline, which will trigger the
170+
# IPermissionPolicy code paths
171+
conf.set('timeline', 'changeset_show_files', '-1')
172+
old_permission_policies = conf.get('trac', 'permission_policies')
173+
if 'GitHubPolicy' not in old_permission_policies:
174+
conf.set('trac', 'permission_policies',
175+
'GitHubPolicy, %s' % old_permission_policies)
176+
169177
with open(CONF, 'wb') as fp:
170178
conf.write(fp)
171179

0 commit comments

Comments
 (0)