Browse Source

Add support for a NOWEB env var, update docs.

tags/v0.4
Ben Kurtovic 9 years ago
parent
commit
a64bae35c9
3 changed files with 14 additions and 4 deletions
  1. +6
    -2
      CHANGELOG
  2. +6
    -2
      docs/changelog.rst
  3. +2
    -0
      tests/test_docs.py

+ 6
- 2
CHANGELOG View File

@@ -24,10 +24,14 @@ v0.4 (unreleased):
- If something goes wrong while parsing, ParserError will now be raised.
Previously, the parser would produce an unclear BadRoute exception or allow
an incorrect node tree to be build.
- Fixed a parser bug involving nested tags, and another involving comments in
template names.
- Fixed parser bugs involving:
- nested tags;
- comments in template names;
- tags inside of <nowiki> tags.
- Added tests to ensure that parsed trees convert back to wikicode without
unintentional modifications.
- Added support for a NOWEB environment variable, which disables a unit test
that makes a web call.
- Test coverage has been improved, and some minor related bugs have been fixed.
- Updated and fixed some documentation.



+ 6
- 2
docs/changelog.rst View File

@@ -35,10 +35,14 @@ Unreleased
- If something goes wrong while parsing, :exc:`.ParserError` will now be
raised. Previously, the parser would produce an unclear :exc:`.BadRoute`
exception or allow an incorrect node tree to be build.
- Fixed a parser bug involving nested tags, and another involving comments in
template names.
- Fixed parser bugs involving:
- nested tags;
- comments in template names;
- tags inside of ``<nowiki>`` tags.
- Added tests to ensure that parsed trees convert back to wikicode without
unintentional modifications.
- Added support for a :envvar:`NOWEB` environment variable, which disables a
unit test that makes a web call.
- Test coverage has been improved, and some minor related bugs have been fixed.
- Updated and fixed some documentation.



+ 2
- 0
tests/test_docs.py View File

@@ -22,6 +22,7 @@

from __future__ import print_function, unicode_literals
import json
import os

try:
import unittest2 as unittest
@@ -111,6 +112,7 @@ class TestDocs(unittest.TestCase):
self.assertPrint(text, res)
self.assertEqual(text, code)

@unittest.skipIf("NOWEB" in os.environ, "web test disabled by environ var")
def test_readme_5(self):
"""test a block of example code in the README; includes a web call"""
url1 = "http://en.wikipedia.org/w/api.php"


Loading…
Cancel
Save