Total Complexity | 1 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | # Copyright Pincer 2021-Present |
||
|
|||
2 | # Full MIT License can be found in `LICENSE` at the project root. |
||
3 | |||
4 | from pincer.utils.conversion import remove_none |
||
5 | |||
6 | |||
7 | class TestSnowflake: |
||
8 | |||
9 | def test_remove_none(self): |
||
10 | assert remove_none([None, 1]) == [1] |
||
11 | assert remove_none({None, 1}) == {1} |
||
12 | assert remove_none({'a': 1, 'b': None}) == {'a': 1} |
||
13 |