Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
atompie committed Jul 20, 2024
1 parent 5174ca3 commit 814c092
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/test_dot_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,12 @@ def test_should_cast_values():
assert array_value == [1, 2, 3]
assert object_value == {"key": "1.02"}
assert memory_casted


def test_ampersand():
dot = DotAccessor(
profile={"@a": "1", "b": {"@a": 1}}
)

assert dot['profile@@a'] == '1'
assert dot['profile@b.@a'] == 1

0 comments on commit 814c092

Please sign in to comment.