genty
genty copied to clipboard
Genty, pronounced "gen-tee", stands for "generate tests". It promotes generative testing, where a single test can execute over a variety of input.
Hi, I have this genty dataset: ` _IP_UNMATCHED_DATA = ( ('2001:6:0:0:0:0:0:0'), ('2001:5:0:0:0:0:0:0') )` and this test code: ` @genty_dataset(*_IP_UNMATCHED_DATA) def test_ipv6(self, ip): assert ip == ip, "Wrong"` When I try...
Consider https://github.com/alanfranz/pyjomap/tree/ecb4572851b0b1939eab747ac37edebd26c49524 and precisely the test case: https://github.com/alanfranz/pyjomap/blob/ecb4572851b0b1939eab747ac37edebd26c49524/pyjomap/test/test_mapping.py#L45 I just refactored the tests to use genty_dataset. When running the tests (just run `make test` in project directory. Using python 2.7...