sphinx-contrib / confluencebuilder

Confluence Markup Builder Plugin for Sphinx
BSD 2-Clause "Simplified" License
317 stars 99 forks source link

tests: updating various bs4 calls #985

Closed jdknight closed 4 months ago

jdknight commented 4 months ago

Beautiful Soup had deprecated various next/previous calls for some time. For example, switching from nextSibling to next_sibling. This commit drops the use of various deprecated calls for new ones.

In addition, there are cases where calls like find_previous_sibling appear to have changed between recent versions. These calls will find the next tag or navigable string, although some older use cases look to not detect a navigable string compared to new versions. Updating these calls to be a bit more explicit in tag searching, as well as relying on alternative means to inspect content.