AequilibraE / qaequilibrae

Free QGIS add-on for transportation modeling
https://www.aequilibrae.com/qgis/latest/
Other
75 stars 24 forks source link

Adds test for Stacked Bandwidths #366

Closed r-akemii closed 1 month ago

r-akemii commented 2 months ago

In this PR we test the functions DesireLinesDialog, DesireLinesProcedure, LoadColorRampSelector, and CreateBandwidthsDialog from the GIS module, increasing the module coverage for visualization tools.

We also removed a code line that printed the result for the Delaunay line procedure and added a new test fixture that creates arbitrary desirelines for test.

r-akemii commented 2 months ago

@pedrocamargo with the addition of these new tests, we should reach 70% test coverage for QAequilibraE code. We're still missing tests for SimpleTagDialog and LeastCommonDenominatorDialog in the GIS module. I'm not sure what to do to test these functions, but I'll check with you later.

r-akemii commented 1 month ago

@pedrocamargo I added a fixture in conftest to create an arbitrary line layer to test bandwidth creation, and the code piece that made the desirelines was tested separately in a new test file.

BTW, we have 72% coverage with the tests in this branch.