Added multi relation dropdowns to dashbord (#363)

This change allows for a more complete combination of relation
combinations to be filtered.
This commit is contained in:
2023-11-11 13:47:46 +01:00
committed by GitHub
parent ad8f5d0fb1
commit e5b61bc19c
8 changed files with 147 additions and 106 deletions

View File

@@ -187,9 +187,8 @@ def _get_company_relations() -> Generator:
yield
@pytest.mark.tim()
def test_update_graph_data() -> None:
graph_result, metrics_result, nodes_result, edges_result = home.update_graph_data(
"HAFTENDER_GESELLSCHAFTER", "GESCHAEFTSFUEHRER"
frozenset({"HAFTENDER_GESELLSCHAFTER"}), frozenset("GESCHAEFTSFUEHRER")
)
assert graph_result is not None

View File

@@ -185,7 +185,7 @@ def test_filter_relation_type() -> None:
relation_dataframe = networkx_data.get_all_company_relations()
selected_relation_type = "HAFTENDER_GESELLSCHAFTER"
company_relations_df = networkx_data.filter_relation_type(
relation_dataframe, selected_relation_type
relation_dataframe, frozenset({selected_relation_type})
)
assert type(company_relations_df) is pd.DataFrame