Changeset View
Changeset View
Standalone View
Standalone View
swh/scanner/tests/test_dashboard.py
# Copyright (C) 2020 The Software Heritage developers | # Copyright (C) 2020 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import dash_html_components as html | import dash_html_components as html | ||||
from swh.model.identifiers import CoreSWHID, ObjectType | from swh.model.swhids import CoreSWHID, ObjectType | ||||
from swh.scanner.dashboard.dashboard import generate_table_body | from swh.scanner.dashboard.dashboard import generate_table_body | ||||
from swh.scanner.data import MerkleNodeInfo | from swh.scanner.data import MerkleNodeInfo | ||||
def test_generate_table_body(source_tree): | def test_generate_table_body(source_tree): | ||||
chart_path = b"/bar/barfoo" | chart_path = b"/bar/barfoo" | ||||
dir_path = source_tree[b"/bar/barfoo"].data["path"].decode() | dir_path = source_tree[b"/bar/barfoo"].data["path"].decode() | ||||
nodes_data = MerkleNodeInfo() | nodes_data = MerkleNodeInfo() | ||||
Show All 30 Lines |