In some cases we may want to delete an entire section from a Datasource.
We can utilize the built in del Python syntax to delete a section; i.e. del Datasource.columns
Changes
Created a function: Datasource.__remove_section_from_parent
For removing a section from a parent Element
Implemented Datasource.__delattr__ to call __remove_section_from_parent
Replaced repeated code in Datasource.save function to use __remove_section_from_parent
Added a test for del Datasource.section functionality
Summary
In some cases we may want to delete an entire section from a Datasource. We can utilize the built in
del
Python syntax to delete a section; i.e.del Datasource.columns
Changes
Datasource.__remove_section_from_parent
Datasource.__delattr__
to call__remove_section_from_parent
Datasource.save
function to use__remove_section_from_parent
del Datasource.section
functionalityTests
del Datasource.<section>
:del datasource.extract
datasource.save()