mozilla-it / pocket-proxy-rs

Rust implementation of the Pocket sponsored content proxy
Mozilla Public License 2.0
2 stars 0 forks source link

Add tests for Decision -> Spoc transformation. #5

Closed smarnach closed 2 years ago

smarnach commented 2 years ago

This PR adds the factory function for mock spocs, and a test that all mock decisions convert into the expected spocs. This is basically an integration test for the most complex part of the JSON transformation, and it did not uncover any bugs.