| 1 | """Tests for the `mixins` module.""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | from griffe import module_vtree |
| 6 | |
| 7 | |
| 8 | def test_access_members_using_string_and_tuples() -> None: |
| 9 | """Assert wa can access the same members with both strings and tuples.""" |
| 10 | module = module_vtree("a.b.c.d") |
| 11 | assert module["b"] is module[("b",)] |
| 12 | assert module["b.c"] is module[("b", "c")] |
| 13 | assert module["b.c.d"] is module[("b", "c", "d")] |