Ben Kurtovic
8cd0bdb322
Autoformat: black + clang-format + clang-tidy
il y a 3 ans
Ben Kurtovic
074e368684
Clean up pytest-ported tests
il y a 3 ans
Ben Kurtovic
b7b3b2e33e
Update changelog; minor tweak to file headers
il y a 3 ans
Kunal Mehta
03181bcd8b
Port tests to use pytest
pytest is the preferred way to write and run unit tests these days and
it has a cleaner interface - so lets switch to it. The tokenizer tests
especially are much easier to read/understand.
This was mostly done with find/replace regexes and then cleaned up
manually.
il y a 4 ans
Kunal Mehta
7e5297fbe6
Drop Python 2 support
Fixes #221 .
il y a 4 ans
Ben Kurtovic
83bcb902b8
Support manual construction of Node objects ( fixes #214 )
il y a 5 ans
Hugo
59636609db
Drop support for EOL Python
il y a 6 ans
Ben Kurtovic
aaffb7f66b
Update copyright for 2016.
il y a 8 ans
Ben Kurtovic
e71e7b4ece
Update copyright years for 2015; fix whitespace in docs.
il y a 10 ans
Ben Kurtovic
963cb2f780
Store builder handlers in a dictionary. ~5% speedup.
il y a 10 ans
Ben Kurtovic
b997e4cd71
Support attributes quoted with '; add required quotes in value setter.
il y a 10 ans
Ben Kurtovic
8bc7ea669d
Improve test coverage; fix some node-related bugs.
* Parameters with non-integer keys can no longer be created with
showkey=False, nor have the value of this attribute be set to False
later.
* Calling Template.remove() with a Parameter object that is not part of
the template now raises ValueError instead of doing nothing.
* Added tests for HTMLEntity._unichr() being called with out-of-range
codepoints.
* Added tests for Tag.__children__() and Tag.__showtree__() involving
attributes that have no values.
il y a 10 ans
Ben Kurtovic
08cafc0576
Raise ParserError for internal problems. Improve coverage. Cleanup.
il y a 10 ans
Ben Kurtovic
1312a1fb8a
Some clean up for Python 2.6 support.
* Removed unittest2 dependency on Python >2.6.
* Moved discover_tests.py into tests/.
* tokenizer.c: Fixed errors noted by -Wshorten-64-to-32.
il y a 10 ans
Marcio Faustino
88c8fb88e0
Switch to `unittest2` to be able to use new features in Python 2.6.
il y a 10 ans
Ben Kurtovic
e5f17eea00
Update copyright notices for 2014.
il y a 11 ans
Ben Kurtovic
066049b46a
Update email address.
il y a 11 ans
Ben Kurtovic
655cdc0dab
TestBuilder.test_external_link()
il y a 11 ans
Ben Kurtovic
f70188daa8
Add builder and tokenizer tests for wiki-markup tags.
il y a 11 ans
Ben Kurtovic
8f0defa00a
Finish tag building test cases ( #9 )
il y a 11 ans
Ben Kurtovic
5018d9d323
Make showtag=True implicit.
il y a 11 ans
Ben Kurtovic
6c2898d7bd
Make {{|=}} build correctly; add a test for this.
il y a 11 ans
Ben Kurtovic
6450814729
Remove 'type' attribute from tags; rework tag definitions.
il y a 11 ans
Ben Kurtovic
81954c50ac
Removing a useless, skipped test.
il y a 11 ans
Ben Kurtovic
1b4c01b4c0
Implement assertTagNodeEqual(), start test_tag(), add to tags.mwtest.
il y a 11 ans
Ben Kurtovic
3fe629f541
Condense usage of wrap([Text("foo")]) to just wraptext("foo").
il y a 11 ans
Ben Kurtovic
7853e20745
Move wrap() and wraptext() TO _test_tree_equality.
il y a 11 ans
Ben Kurtovic
2d9b8a39b6
test_integration2(); finish TestBuilder
il y a 11 ans
Ben Kurtovic
094e867ee6
Add test_integration(); add a horrible abuse of PEP8
il y a 11 ans
Ben Kurtovic
132c6584d0
test_heading() and test_comment()
il y a 11 ans
Ben Kurtovic
e9463543f4
test_html_entity()
il y a 11 ans
Ben Kurtovic
7289d8c070
test_wikilink(); fix indentation
il y a 11 ans
Ben Kurtovic
e32a6692f8
test_argument()
il y a 11 ans
Ben Kurtovic
b8e8d057ab
Finish test_template()
il y a 11 ans
Ben Kurtovic
cb23587ab6
Adding some Builder tests
il y a 11 ans
Ben Kurtovic
404b4479a2
Implement the remaining asserts in TreeEqualityTestCase.
il y a 11 ans
Ben Kurtovic
892092434f
Skeleton for TestBuilder; adding some nodes to TreeEqualityTestCase.
il y a 11 ans
Ben Kurtovic
88201ecb54
Adding TestTokens.
Add from __future__ import unicode_literals to a few files.
il y a 11 ans
Ben Kurtovic
fb7567d6d0
Some empty testcases.
il y a 11 ans
Ben Kurtovic
cd5cc6a7d0
Update copyright notices for 2013.
il y a 12 ans
Ben Kurtovic
816207bb5a
Simplify docs massively.
il y a 12 ans
Ben Kurtovic
aeb214acb5
Document compat, nodes.extras, Attribute, Parameter
il y a 12 ans
Ben Kurtovic
3633f31633
Relaive imports because they are awesome; more stuff in SmartList.
il y a 12 ans
Ben Kurtovic
fca7e9dd80
Implement Heading, HTMLTag, HTMLTagAttribute, plus some fixes.
il y a 12 ans
Ben Kurtovic
e4fd6ef127
Updating with a more logical project structure.
il y a 12 ans
Ben Kurtovic
4cb3506820
Update copyright notice; some additions.
il y a 12 ans
Ben Kurtovic
9d1e77000c
A bunch of updates from the past weeks.
il y a 12 ans
Ben Kurtovic
a880ff8bf2
mwtemplateparserfromhell -> mwparserfromhell; some additions; still incomplete
il y a 12 ans
Ben Kurtovic
ce8adf4b2e
Initial commit
il y a 12 ans