Skip to content

Commit

Permalink
add minor test of concatenator options getter
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfromearth committed Jul 1, 2024
1 parent 08112ff commit 77b5c50
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/unit/test_attribute_handling.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import pytest

import concatenator
from concatenator.attribute_handling import (
_flatten_coordinate_attribute,
regroup_coordinate_attribute,
Expand Down Expand Up @@ -38,3 +41,10 @@ def test_coordinate_attribute_regrouping():
)
== "time longitude latitude ozone_profile_pressure ozone_profile_altitude"
)


def test_concatenator_options_access():
assert concatenator.group_delim == "__"
assert concatenator.__options__.group_delim == "__"
with pytest.raises(AttributeError):
_ = concatenator.unknown_attribute

0 comments on commit 77b5c50

Please sign in to comment.