Skip to content

Commit

Permalink
Merge branch 'refs/heads/1.0.0' into 1.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
atompie committed Jul 20, 2024
2 parents 1ba417a + 814c092 commit 34940a3
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 34940a3

Please sign in to comment.