Ben Kurtovic
af83306e04
Fix pickling SmartLists ( fixes #289 )
pirms 1 gada
Ben Kurtovic
8cd0bdb322
Autoformat: black + clang-format + clang-tidy
pirms 3 gadiem
Ben Kurtovic
074e368684
Clean up pytest-ported tests
pirms 4 gadiem
Ben Kurtovic
b7b3b2e33e
Update changelog; minor tweak to file headers
pirms 4 gadiem
Ben Kurtovic
1c983d3738
Assorted cleanup, linter fixes, and improvements for Python 3
pirms 4 gadiem
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.
pirms 5 gadiem
Kunal Mehta
7e5297fbe6
Drop Python 2 support
Fixes #221 .
pirms 5 gadiem
Ben Kurtovic
6136b1b205
Make Wikicode.matches() treat _ and space as equivalent ( fixes #216 )
pirms 5 gadiem
Ben Kurtovic
0ae5f6d641
Fix regression in previous commit on _ListProxy transformations ( fixes #213 )
pirms 5 gadiem
Ben Kurtovic
840a88bcd6
Fix Wikicode transformation methods on empty sections ( fixes #212 )
pirms 5 gadiem
Hugo
59636609db
Drop support for EOL Python
pirms 6 gadiem
Ben Kurtovic
d7c755f526
Add Wikicode.contains(), Wikicode.get_ancestors(), Wikicode.get_parent() ( #177 )
pirms 7 gadiem
Ben Kurtovic
68ded2f890
Add keep_template_params to Wikicode.strip_code ( #175 )
pirms 7 gadiem
Ben Kurtovic
aaffb7f66b
Update copyright for 2016.
pirms 9 gadiem
Ben Kurtovic
e71e7b4ece
Update copyright years for 2015; fix whitespace in docs.
pirms 10 gadiem
Ben Kurtovic
bbd4cd97cf
Add tests for some missed things in Wikicode.
pirms 10 gadiem
Ben Kurtovic
c95802f9cc
Allow recursing through everything except the forced type ( fixes #70 )
pirms 10 gadiem
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.
pirms 10 gadiem
Marcio Faustino
88c8fb88e0
Switch to `unittest2` to be able to use new features in Python 2.6.
pirms 10 gadiem
Ben Kurtovic
e5f17eea00
Update copyright notices for 2014.
pirms 11 gadiem
Ben Kurtovic
45aec31629
Move range/xrange compatibility code to compat.py.
pirms 11 gadiem
Ben Kurtovic
8df596ba08
Re-added 'flat' argument to Wikicode.get_sections().
Requested by Σ.
pirms 11 gadiem
Ben Kurtovic
79bf42df1c
Wikicode.get_sections() now returns sections in the correct order.
Reported by Σ.
pirms 11 gadiem
Ben Kurtovic
066049b46a
Update email address.
pirms 11 gadiem
Ben Kurtovic
aabe711ee6
Wikicode.matches() can now take a tuple or list.
pirms 11 gadiem
Ben Kurtovic
5e6c994c2c
Wikicode.matches() now accepts tuples ( closes #48 )
pirms 11 gadiem
Ben Kurtovic
e5ad4639ff
Wikicode.i?filter*()'s matches argument now takes functions ( closes #47 )
Bump version to 0.4.dev.
pirms 11 gadiem
Ben Kurtovic
d1a7d25220
Set right context for ExternalLink.url; Wikicode.filter_external_links()
pirms 11 gadiem
Ben Kurtovic
fdf4f6774d
Make test_remove() use _test_search().
pirms 11 gadiem
Ben Kurtovic
1d9340b965
Tests for the _do_search() wrapper funcs' newly expanded scopes.
pirms 11 gadiem
Ben Kurtovic
4ef29c2611
Clean up Wikicode; unify tests for _do_search()-using methods.
pirms 11 gadiem
Ben Kurtovic
2f3edde57a
Add a matches() method to Wikicode.
pirms 11 gadiem
Ben Kurtovic
02e52185f4
Wikicode's filter() methods now passed recursive=True instead of False.
This is a breaking change for those who rely on default behavior.
pirms 11 gadiem
Ben Kurtovic
2354fe13aa
Implement test_strip_code(); finish TestWikicode ( #7 )
pirms 11 gadiem
Ben Kurtovic
4ae10eccf5
Fix bugs in get_sections(); finish test_get_sections()
pirms 11 gadiem
Ben Kurtovic
35acc1b812
Fix a couple bugs.
pirms 11 gadiem
Ben Kurtovic
0b56f2e267
Improve Wikicode.get_sections(); implement test_get_tree(); part of test_get_sections()
pirms 11 gadiem
Ben Kurtovic
f700914caf
Cleanup Wikicode's filter functions; implement test_filter_family().
pirms 11 gadiem
Ben Kurtovic
3095a4203f
Finish tests for Wikicode's list-like methods; fix a bug.
pirms 11 gadiem
Ben Kurtovic
ee99e6eceb
Fix a bug in Wikicode.set(); implement test_set() and test_index()
pirms 11 gadiem
Ben Kurtovic
852c5ff9af
Start TestWikicode; make Wikicode.nodes's setter handle more inputs.
pirms 11 gadiem