juanmcasillas / gopro2gpx

Parse the gpmd stream for GOPRO moov track (MP4) and extract the GPS info into a GPX (and kml) file.
GNU General Public License v3.0
181 stars 50 forks source link

Basic test harness #35

Closed stakita closed 1 year ago

stakita commented 1 year ago

This PR adds some test harnesses to the project using pytest. Current test is a basic top-level tests that just ensures that the binary and gpx output files match the samples directory when gopro2gpx is run.

To make it possible to inject the args during the tests, a shim layer was added that passes the args object to the main_core function. Additionally, the samples gpx files were updated to the current output from the tool (these looked pretty out of date).