Coverage for tests/test_mixins.py: 100.00%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-08-15 16:47 +0200

1"""Tests for the `mixins` module.""" 

2 

3from __future__ import annotations 

4 

5from griffe import module_vtree 

6 

7 

8def 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")]