Skip to content

Commit 973d947

Browse files
committed
check trackers trace_search as well.
1 parent 38f398d commit 973d947

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

test/test_admin.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,19 +1256,32 @@ def testTemplates(self):
12561256
self.admin=AdminTool()
12571257

12581258
with captured_output() as (out, err):
1259-
# command does not require a tracker home. use zZzZ to cause error
1259+
# command does not require a tracker home. use missing zZzZ
1260+
# directory to cause error if that changes
12601261
sys.argv=['main', '-i', "zZzZ", 'templates' ]
12611262
ret = self.admin.main()
12621263

12631264
out = out.getvalue().strip()
12641265

1266+
# all 5 standard trackers should be found
12651267
for tracker in ['Name: classic\nPath:',
12661268
'Name: devel\nPath:',
12671269
'Name: jinja2\nPath:',
12681270
'Name: minimal\nPath:',
12691271
'Name: responsive\nPath:']:
12701272
self.assertIn(tracker, out)
12711273

1274+
with captured_output() as (out, err):
1275+
# command does not require a tracker home. use missing zZzZ
1276+
# directory to cause error if that changes
1277+
sys.argv=['main', '-i', "zZzZ", 'templates', 'trace_search' ]
1278+
ret = self.admin.main()
1279+
1280+
out = out.getvalue().strip()
1281+
1282+
expected = "/*\n"
1283+
self.assertIn(expected, out)
1284+
12721285
class anydbmAdminTest(AdminTest, unittest.TestCase):
12731286
backend = 'anydbm'
12741287

0 commit comments

Comments
 (0)