Skip to content

Commit

Permalink
🧹🧪 Improved readability of property markdown test
Browse files Browse the repository at this point in the history
  • Loading branch information
s-weigand committed Nov 28, 2021
1 parent e91d061 commit 210bdb8
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions glotaran/model/test/test_model_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ class MockClass:
assert p_sequence.glotaran_property_subtype is int
assert not p_sequence.glotaran_is_parameter_property
print(p_sequence.glotaran_value_as_markdown([1, 2]))
assert (
p_sequence.glotaran_value_as_markdown([1, 2])
== """
* 1
* 2"""
)
assert p_sequence.glotaran_value_as_markdown([1, 2]) == "\n * 1\n * 2"

p_mapping = ModelProperty(MockClass, "mapping", Dict[str, int], "", None, True)
assert not p_mapping.glotaran_is_scalar_property
Expand All @@ -42,12 +37,7 @@ class MockClass:
assert p_mapping.glotaran_property_subtype is int
assert not p_mapping.glotaran_is_parameter_property
print(p_mapping.glotaran_value_as_markdown({"a": 1, "b": 2}))
assert (
p_mapping.glotaran_value_as_markdown({"a": 1, "b": 2})
== """
* a: 1
* b: 2"""
)
assert p_mapping.glotaran_value_as_markdown({"a": 1, "b": 2}) == "\n * a: 1\n * b: 2"


def test_model_property_parameter():
Expand Down

0 comments on commit 210bdb8

Please sign in to comment.