Princeton-CDH / mep-django

@@ -44,7 +44,7 @@
Loading
44 44
        'item_uri', 'item_title', 'item_volume', 'item_authors',
45 45
        'item_year', 'item_notes',
46 46
        # footnote/citation
47 -
        'source_citation', 'source_manifest', 'source_image'
47 +
        'source_type', 'source_citation', 'source_manifest', 'source_image'
48 48
    ]
49 49
50 50
    def get_queryset(self):
@@ -172,6 +172,7 @@
Loading
172 172
    def source_info(self, footnote):
173 173
        '''source details from a footnote'''
174 174
        source_info = OrderedDict([
175 +
            ('type', footnote.bibliography.source_type.name),
175 176
            ('citation', footnote.bibliography.bibliographic_note)
176 177
        ])
177 178
        if footnote.bibliography.manifest:

@@ -527,6 +527,7 @@
Loading
527 527
        assert info['citation'] == footnote.bibliography.bibliographic_note
528 528
        assert info['manifest'] == footnote.bibliography.manifest.uri
529 529
        assert info['image'] == str(footnote.image.image)
530 +
        assert info['type'] == footnote.bibliography.source_type.name
530 531
531 532
    def test_get_object_data(self):
532 533
        # get a subscription with no subcategory and both dates
Files Coverage
mep 98.44%
srcmedia/ts 86.55%
Project Totals (223 files) 98.01%
2521.1
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading