-
Notifications
You must be signed in to change notification settings - Fork 184
Open
Description
The following test is never run:
kepler-mapper/test/test_visuals.py
Lines 269 to 285 in ece5d47
| def test_format_meta(self): | |
| mapper = KeplerMapper() | |
| data = np.random.rand(1000, 10) | |
| lens = mapper.fit_transform(data, projection=[0]) | |
| graph = mapper.map(lens, data) | |
| color_function_name = ["Row number"] | |
| fmt = _format_meta(graph, color_function_name) | |
| assert fmt["n_nodes"] == len(graph["nodes"]) | |
| assert "n_edges" in fmt.keys() | |
| assert "n_total" in fmt.keys() | |
| del fmt["custom_meta"] | |
| vals = fmt.values() | |
| for v in vals: | |
| assert isinstance(v, numbers.Number) |
It isn't run as it is shadowed by this test later in the file:
kepler-mapper/test/test_visuals.py
Lines 299 to 304 in ece5d47
| def test_format_meta(self, sc): | |
| mapper_summary = _format_meta(sc, "foo", "bar", "Nada custom meta") | |
| assert mapper_summary["custom_meta"] == "Nada custom meta" | |
| assert ( | |
| mapper_summary["n_total"] <= 300 and mapper_summary["n_total"] >= 200 | |
| ), "Some points become repeated in multiple nodes." |
Additionally if one changes the first tests name it fails to pass.
Metadata
Metadata
Assignees
Labels
No labels