Closed mwengren closed 7 years ago
Looks like the build failures here exist outside of the PR too. Can you perhaps add a test?
About the tests, I looked at what's already available for this class, which is nothing, except for the superclass, which is here I believe?. There are pretty good tests for the subclasses of IoosSweSos though: Coops and Ndbc, so I skipped adding anything to the superclass tests at first. Should there be a new test class created for IoosSweSos?
@daf I added a simple test class for IoosSweSos that hits the NANOOS SOS service and does some simple checks. A lot of the other tests are still failing, and I don't think I can fix those at this point.
Can we merge this with these tests added?
@mwengren this is good, and will do a good job detecting drift of live services vs the pyoos codebase (aka, exactly the reason we have build failures currently, although those are data based and not format/processing based). A level-up on this would be to capture the output of this service to embed in the test codebase as a string and plug it through the parsing pipeline to make sure the parsing is working as intended. I'll merge this though.
Some SOS services do not always successfully return SensorML for all procedures, breaking 'metadata' function.