I added a basic test to test_uploader since I kept failing validation. It's quite simple; other tests compare the docs that the uploader creates against hardcoded 'expected' docs (via Mox). So I just ran all those hardcoded docs through validation, thereby ensuring that the uploader produces valid docs.
Could add a similar thing to the parser. It tests both the parser and the uploader, and stops us accidentally breaking validation later on after this is deployed.
I added a basic test to test_uploader since I kept failing validation. It's quite simple; other tests compare the docs that the uploader creates against hardcoded 'expected' docs (via Mox). So I just ran all those hardcoded docs through validation, thereby ensuring that the uploader produces valid docs.
Could add a similar thing to the parser. It tests both the parser and the uploader, and stops us accidentally breaking validation later on after this is deployed.