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

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

We use Python 3.8