This file is indexed.

/usr/lib/python2.7/dist-packages/schooltool/gradebook/browser/ftests/report_request_views.txt is in python-schooltool.gradebook 2.6.3-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Report Request Views
--------------------

Log in as manager:

    >>> manager = Browser('manager', 'schooltool')

We'll set up a default school with a single section:

    >>> from schooltool.app.browser.ftests import setup
    >>> setup.setUpBasicSchool()
    >>> setup.addCourse('Math I', '2005-2006')
    >>> setup.addSection('Math I', '2005-2006', 'Fall',
    ...                  instructors=[],
    ...                  members=[])

We'll go to the report reference view to make sure our registered report
adapters are reflected there.

    >>> manager.getLink('Manage').click()
    >>> manager.getLink('Reports').click()
    >>> report_names =  manager.queryHTML('//table//tr/td[2]/a/text()')
    >>> 'Student Detail Report' in report_names
    True
    >>> 'Student Report Card' in report_names
    True
    >>> 'Student Detail Report by Group' in report_names
    True
    >>> 'Student Report Card by Group' in report_names
    True
    >>> 'Failures by Term' in report_names
    True

Journal reports are not available.

    >>> 'Absences by Section' in report_names
    False
    >>> 'Absences By Day' in report_names
    False

Now we'll visit the various context types and see that the registered report
request adapters are reflected in the report request views.

    >>> manager.getLink('Manage').click()
    >>> manager.getLink('Persons').click()
    >>> manager.getLink(url='manager').click()
    >>> manager.getLink('Reports').click()
    >>> report_names =  manager.queryHTML('//li/a/text()')
    >>> 'Student Report Card' in report_names
    True
    >>> 'Student Detail Report' in report_names
    True

    >>> manager.getLink('2005-2006').click()
    >>> manager.getLink('Groups').click()
    >>> manager.getLink('Students').click()
    >>> manager.getLink('Reports').click()
    >>> report_names =  manager.queryHTML('//li/a/text()')
    >>> 'Student Report Card by Group' in report_names
    True
    >>> 'Student Detail Report by Group' in report_names
    True

    >>> manager.getLink('2005-2006').click()
    >>> manager.getLink('Fall').click()
    >>> manager.getLink('Reports').click()
    >>> report_names =  manager.queryHTML('//li/a/text()')
    >>> 'Failures by Term' in report_names
    True