(generator_class)
| 85 | |
| 86 | |
| 87 | def test_random(generator_class): |
| 88 | a = generator_class().random((10, 10), chunks=(5, 5)) |
| 89 | assert isinstance(a, Array) |
| 90 | assert isinstance(a.name, str) and a.name |
| 91 | assert a.shape == (10, 10) |
| 92 | assert a.chunks == ((5, 5), (5, 5)) |
| 93 | |
| 94 | x = set(np.array(a).flat) |
| 95 | |
| 96 | assert len(x) > 90 |
| 97 | |
| 98 | |
| 99 | def test_parametrized_random_function(generator_class): |
nothing calls this directly
no test coverage detected
searching dependent graphs…