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

waylan / Python-Markdown / 42

Build:
DEFAULT BRANCH: master
Ran 30 Jul 2014 01:52AM UTC
Jobs 3
Files 28
Run time 33s
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

pending completion
42

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.

11 of 11 new or added lines in 1 file covered. (100.0%)

2376 of 2597 relevant lines covered (91.49%)

2.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 42.1 (TOXENV=py26) 30 Jul 2014 01:52AM UTC 0
91.26
Travis Job 42.1
4 42.4 (TOXENV=py33) 30 Jul 2014 01:52AM UTC 0
91.37
Travis Job 42.4
5 42.5 (TOXENV=py34) 30 Jul 2014 01:52AM UTC 0
91.37
Travis Job 42.5
Source Files on build 42
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #42
  • aae37386 on github
  • Prev Build on master (#39)
  • Next Build on master (#43)
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