• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

waylan / Python-Markdown / 42 / 5

Build:
DEFAULT BRANCH: master
Ran 30 Jul 2014 01:52AM UTC
Files 28
Run time 14s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jul 2014 01:34AM UTC coverage: 91.375% (+0.03%) from 91.345%
TOXENV=py34

push

travis-ci

waylan
Refactor markdown.extensions.Extension.__init__()

As pointed out in #325, setting up Extension configs is kind of a
mess. Some places pass a list of tuples on initialization, others
a dict. And sometimes they're passed as an arg, othertimes a kwarg.
Addiitonaly, the docs are just as inconsistant.

This refactor addresses all those sinerios with tests included.
The existing extensions still need refactored. But the fact that
their tests still pass means we havn't broken third party extensions
either.

This refactor also introduces a new API, which is the prefered
method going forward. All docs should be updated to match.
Whereas previously one might do:

```python
MyExtension(configs={'key': 'foo', 'otherkey': 'bar'})
```

This can now be done:

```python
MyExtension(key='foo', otherkey='bar')
```

Of course, the old way still works for backward compatability.
But that means the `configs` keyword has special status and cannot
be used for another purpose.

2373 of 2597 relevant lines covered (91.37%)

0.91 hits per line

Source Files on job 42.5 (TOXENV=py34)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 42
  • Travis Job 42.5
  • aae37386 on github
  • Prev Job for TOXENV=py34 on master (#39.5)
  • Next Job for TOXENV=py34 on master (#43.5)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc