summaryrefslogtreecommitdiff
path: root/bs4/tests/test_tree.py
AgeCommit message (Collapse)Author
2012-08-20Raise a more specific error (FeatureNotFound) when a requestedLeonard Richardson
parser or parser feature is not installed. Raise NotImplementedError instead of ValueError when the user calls insert_before() or insert_after() on the BeautifulSoup object itself. Patch by Aaron Devore. [bug=1038301]
2012-08-16As per PEP-8, allow searching by CSS class using the 'class_'Leonard Richardson
keyword argument. [bug=1037624]
2012-05-24 Fixed the inability to search for non-ASCII attributeLeonard Richardson
values. [bug=1003974] This caused a major refactoring of the search code. All the tests pass, but it's possible that some searches will behave differently.
2012-05-24Fixed the basic failure in [bug=1003974], but not more advanced cases.Leonard Richardson
2012-05-24 Fixed some edge-case bugs having to do with inserting an elementLeonard Richardson
into a tag it's already inside, and replacing one of a tag's children with another. [bug=997529]
2012-04-26Added a new method, wrap().Leonard Richardson
2012-04-26Renamed replace_with_children() to the jQuery name, unwrap().Leonard Richardson
2012-04-26Upon document generation, CData objects are no longer run through the ↵Leonard Richardson
formatter. [bug=988905]
2012-04-26Fixed test failure when lxml is not installed.Leonard Richardson
2012-04-18Made encoding substitution in <meta> tags completely transparent (no more ↵Leonard Richardson
%SOUP-ENCODING%).
2012-04-16Attribute values are now run through the provided output formatter. ↵Leonard Richardson
Previously they were always run through the 'minimal' formatter. [bug=980237]
2012-04-16 Fixed a bug with the string setter that moved a string around theLeonard Richardson
tree instead of copying it. [bug=983050]
2012-04-11Added renderContents back.Leonard Richardson
2012-03-15Fixed a bug where specifying 'text' while searching for a tag only worked if ↵Leonard Richardson
'text' specified an exact string match. [bug=955942]
2012-03-02Brought the soupselect port up to date.Leonard Richardson
2012-03-02Fixed a bug that caused calling a tag to sometimes call find_all() with the ↵Leonard Richardson
wrong arguments. [bug=944426]
2012-03-01Test that CSS selectors work within the tree as well as at the top level.Leonard Richardson
2012-03-01Got tests to pass on Python 2 and Python 3.Leonard Richardson
2012-03-01Initial port of code and tests.Leonard Richardson
2012-02-27Make prettify() return Unicode by default, so it will look nice when passed ↵Leonard Richardson
into print() under Python 3.
2012-02-23Fixed handling of the closing of namespaced tags.Leonard Richardson
2012-02-23Bumped version number.Leonard Richardson
2012-02-23Merge from trunk and added tests.Leonard Richardson
2012-02-20It's now possible to copy a BeautifulSoup object created with the ↵Leonard Richardson
html.parser treebuilder.
2012-02-20Temporarily skip the deepcopy test when lxml is not installed.Leonard Richardson
2012-02-20Changd the class structure so that the default parser test class uses ↵Leonard Richardson
html.parser.
2012-02-16By default, turn unrecognized characters into numeric XML entity refs.Leonard Richardson
2012-02-15Added a kind of hacky way to interpret the restriction class='foo bar'. Stop ↵Leonard Richardson
generating a space before the slash that closes an empty-element tag.
2012-02-15The value of multi-valued attributes like class are always turned into a ↵Leonard Richardson
list, even if there's only one value.
2012-02-15Some cdata-list attributes are only cdata lists for certain tags.Leonard Richardson
2012-02-15Better defined behavior when the user wants to search for a combination of ↵Leonard Richardson
text and tag-specific arguments. [bug=695312]
2012-02-15Tested that extract() distinguishes between idientical strings.Leonard Richardson
2012-02-09Fixed a bug that wrecked the tree if you replaced an element with an empty ↵Leonard Richardson
string. [bug=728697]
2012-02-08Rationalized the treatment of multi-valued HTML attributes such as 'class'Leonard Richardson
2012-02-08Switched around the implementation of insert_before and insert_after to ↵Leonard Richardson
match jQuery.
2012-02-08Renamed move_* back to insert_*Leonard Richardson
2012-02-07Newly created tags use the same empty-element rules as the builder used to ↵Leonard Richardson
originally create the soup.
2012-02-07BeautifulSoup objects don't support move_before() or move_after.Leonard Richardson
2012-02-07Renamed insert_before to move_before, to avoid confusion with the way ↵Leonard Richardson
insert() works.
2012-02-07Added and tested insert_before and insert_after.Leonard Richardson
2012-02-07Made the formatter something you pass in rather than a variable you set.Leonard Richardson
2012-02-06You can't replace a tag with its parent, or insert a tag into itself. ↵Leonard Richardson
replace operations return the thing that was replaced.
2012-02-01Cleaned up the TODO.Leonard Richardson
2012-02-01Generators no longer yield None after going off the end of the iteration.Leonard Richardson
2012-02-01Got the new-tag test to pass.Leonard Richardson
2012-02-01Added tag creation and string generators, both created while writing the docs.Leonard Richardson
2012-01-20Replaced assertEquals with assertEqual to get rid of deprecation notice.Leonard Richardson
2012-01-20Got the test suite to pass on Python 3.2 (skipping the html5lib stuff, which ↵Leonard Richardson
doesn't seem to have Python 3 support yet.)
2011-07-07Small fix for test.Thomas Kluyver
2011-06-29Various changes so most tests pass on Python 3.Thomas Kluyver