networktocode / ntc-rosetta

The missing bridge between industry standard CLIs and YANG
https://ntc-rosetta.readthedocs.io/en/latest/index.html
Apache License 2.0
103 stars 23 forks source link

Test refactor #34

Closed dgjustice closed 4 years ago

dgjustice commented 4 years ago

This refactor removes the test magic for "merge" operations. I attempted to make the test code as concise as possible since it is pure boilerplate with this method. It does, however, give us the critical ability to address corner cases and add tests that need to raise exceptions, for example. A recent blog post backs up this line of thought, though I don't want to be accused of "monkey see, monkey do". :)