From be42be8d9e36a656fec67281b6829bc661a2f957 Mon Sep 17 00:00:00 2001 From: Ryan Murray <74630349+rywm-dhi@users.noreply.github.com> Date: Fri, 6 Sep 2024 09:46:45 +0200 Subject: [PATCH] Make location html repr tests more manageable --- tests/test_network_formatting.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/tests/test_network_formatting.py b/tests/test_network_formatting.py index 05f38cc2..2be8b218 100644 --- a/tests/test_network_formatting.py +++ b/tests/test_network_formatting.py @@ -45,9 +45,8 @@ def test_single_node_html_repr(node): padding: 0px; padding-left: 2em; } - -
Attributes (8)
Quantities (1)
""" - assert html_repr == expected_html_repr + """ + assert expected_html_repr in html_repr def test_single_catchment_html_repr(catchment): @@ -59,9 +58,8 @@ def test_single_catchment_html_repr(catchment): padding: 0px; padding-left: 2em; } - -
Attributes (3)
Quantities (5)
""" - assert html_repr == expected_html_repr + """ + assert expected_html_repr in html_repr def test_single_reach_html_repr(river_reach): @@ -73,9 +71,8 @@ def test_single_reach_html_repr(river_reach): padding: 0px; padding-left: 2em; } - -
Attributes (5)
Quantities (4)
""" - assert html_repr == expected_html_repr + """ + assert expected_html_repr in html_repr def test_single_structure_html_repr(structure): @@ -87,6 +84,5 @@ def test_single_structure_html_repr(structure): padding: 0px; padding-left: 2em; } - -
Attributes (3)
Quantities (1)
""" - assert html_repr == expected_html_repr + """ + assert expected_html_repr in html_repr