avatar Bite 243. Test code that parses JSON and IP ranges


Note this is a Test Bite and uses Python 3.7 and MutPy 0.6.1

Another Test Bite, we ❀️them 😁- today you will write tests for IPv4Network (ipaddress module) and dataclass objects πŸ’ͺ.

Check out the ips module I wrote parsing a JSON file of IP ranges (ip-ranges.json) under CODE TO TEST, then write tests to get to 100% test coverage and a 100% mutation score.

Good luck and keep calm and code in Python 🐍 and pytest. Share your accomplishment upon completing the Bite 😎

Login and get coding
go back Intermediate level
Bitecoin 3X

102 out of 112 users completed this Bite.
Will you be Pythonista #103 to crack this Bite?
Resolution time: ~85 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 5.57 on a 1-10 difficulty scale.
» Up for a challenge? πŸ’ͺ

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help