Princeton-CDH / mep-django

@@ -1,4 +1,4 @@
Loading
1 -
__version_info__ = (1, 2, 0, None)
1 +
__version_info__ = (1, 2, 1, None)
2 2
3 3
4 4
# Dot-connect all but the last. Last is dash-connected if not None.

@@ -210,8 +210,8 @@
Loading
210 210
            "Barry Pain’s “Exit Eliza” (1912)"
211 211
212 212
        # add second author
213 -
        auth2 = Person.objects.create(name='Lara Cain', sort_name='Cain, Lara',
214 -
                                      slug='cain')
213 +
        auth2 = Person.objects.create(name='Ms. Lara Cain',
214 +
                                      sort_name='Cain, Lara', slug='cain')
215 215
        author = CreatorType.objects.get(name='Author')
216 216
        Creator.objects.create(person=auth2, work=exit_eliza,
217 217
                               creator_type=author, order=2)
@@ -233,8 +233,8 @@
Loading
233 233
        blue_train = Work.objects.get(pk=5)
234 234
235 235
        # add editor
236 -
        ed1 = Person.objects.create(name='Lara Cain', sort_name='Cain, Lara',
237 -
                                    slug='cain')
236 +
        ed1 = Person.objects.create(name='Ms. Lara Cain',
237 +
                                    sort_name='Cain, Lara', slug='cain')
238 238
        editor = CreatorType.objects.get(name='Editor')
239 239
        Creator.objects.create(person=ed1, work=blue_train,
240 240
                               creator_type=editor, order=1)
@@ -377,7 +377,7 @@
Loading
377 377
        # purchase date same as start date
378 378
        subs.subscription.purchase_date = subs.start_date
379 379
        tweet = tweet_content(subs, subs.partial_start_date)
380 -
        assert 'subscribed for 1 month at 2 volumes per month'  \
380 +
        assert 'subscribed for 1 month, 2 volumes at a time'  \
381 381
            in tweet
382 382
383 383
    def test_tweet_text_tag(self):

@@ -157,7 +157,7 @@
Loading
157 157
158 158
    return any([
159 159
        # subscription event and date matches purchase
160 -
        (ev.event_label == 'Subscription' and
160 +
        (ev.event_label in ['Subscription', 'Renewal'] and
161 161
         ev.subscription.partial_purchase_date == day),
162 162
        # borrow event and date matches end date
163 163
        (ev.event_label == 'Borrow' and ev.partial_end_date == day),
@@ -191,7 +191,7 @@
Loading
191 191
    # all tweets start the same way
192 192
    prolog = '#100YearsAgoToday on %s at Shakespeare and Company, ' % \
193 193
        day.strftime(Command.date_format)
194 -
    # handle shared accountsr
194 +
    # handle shared accounts
195 195
    member_name = ' and '.join(m.firstname_last
196 196
                               for m in ev.account.persons.all())
197 197
    tweet_info = {
@@ -212,7 +212,7 @@
Loading
212 212
        })
213 213
        # include volume count if known
214 214
        if ev.subscription.volumes:
215 -
            tweet_info['volumes'] = ' at %d volume%s per month' % \
215 +
            tweet_info['volumes'] = ', %d volume%s at a time' % \
216 216
                (ev.subscription.volumes,
217 217
                 '' if ev.subscription.volumes == 1 else 's')
218 218
@@ -269,10 +269,10 @@
Loading
269 269
        # handle multiple authors
270 270
        if len(work.authors) <= 2:
271 271
            # one or two: join by and
272 -
            author = ' and '.join([a.name for a in work.authors])
272 +
            author = ' and '.join([a.firstname_last for a in work.authors])
273 273
        else:
274 274
            # more than two: first name et al
275 -
            author = '%s et al.' % work.authors[0].name
275 +
            author = '%s et al.' % work.authors[0].firstname_last
276 276
        parts.append('%s’s' % author)
277 277
278 278
    # if no author but editors, we will include editor
@@ -295,10 +295,10 @@
Loading
295 295
    if include_editors:
296 296
        if len(work.editors) <= 2:
297 297
            # one or two: join by and
298 -
            editor = ' and '.join([ed.name for ed in work.editors])
298 +
            editor = ' and '.join([ed.firstname_last for ed in work.editors])
299 299
        else:
300 300
            # more than two: first name et al
301 -
            editor = '%s et al.' % work.editors[0].name
301 +
            editor = '%s et al.' % work.editors[0].firstname_last
302 302
        parts.append('edited by %s' % editor)
303 303
304 304
    # include work year if known not before 1500
Files Coverage
mep 98.43%
srcmedia/ts 86.55%
Project Totals (223 files) 98.00%
2463.1
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux
2462.1
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux
2467.1
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux
2465.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