I removed the uses of duplicate_tag() where used to see if the tests still pass. One place still required a duplicate tag before the tag is modified and still produce the same output expected in the test scenarios. Using copy.copy() for duplicating the tag now.
This allows all the tests to pass for me in Python 3 (on mac) using the upgraded Beautifulsoup and lxml dependencies.
Coverage decreased (-0.001%) to 99.558% when pulling 27516f0aee92d23648e5935a34c685bbc485251f on duplicate-tag into e3aa4bd3d1d2090d15b43002a68a41909fcfe872 on develop.
Fixes https://github.com/elifesciences/elife-tools/issues/299 In reference to PR https://github.com/elifesciences/elife-tools/pull/298
I removed the uses of
duplicate_tag()
where used to see if the tests still pass. One place still required a duplicate tag before the tag is modified and still produce the same output expected in the test scenarios. Usingcopy.copy()
for duplicating the tag now.This allows all the tests to pass for me in Python 3 (on mac) using the upgraded
Beautifulsoup
andlxml
dependencies.