(generator_class)
| 97 | |
| 98 | |
| 99 | def test_parametrized_random_function(generator_class): |
| 100 | a = generator_class().exponential(1000, (10, 10), chunks=(5, 5)) |
| 101 | assert isinstance(a, Array) |
| 102 | assert isinstance(a.name, str) and a.name |
| 103 | assert a.shape == (10, 10) |
| 104 | assert a.chunks == ((5, 5), (5, 5)) |
| 105 | |
| 106 | x = np.array(a) |
| 107 | assert 10 < x.mean() < 100000 |
| 108 | |
| 109 | y = set(x.flat) |
| 110 | assert len(y) > 90 |
| 111 | |
| 112 | |
| 113 | def test_kwargs(generator_class): |
nothing calls this directly
no test coverage detected
searching dependent graphs…