| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d54f851 commit aaf046a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,11 @@ | |||
| 11 | 11 | import os | |
| 12 | 12 | import sys | |
| 13 | 13 | ||
| 14 | + if sys.version_info >= (3, 11): | ||
| 15 | + from typing import assert_type | ||
| 16 | + else: | ||
| 17 | + from typing_extensions import assert_type | ||
| 18 | + | ||
| 14 | 19 | import pytest | |
| 15 | 20 | ||
| 16 | 21 | import git.compat | |
@@ -38,6 +43,10 @@ def test_is_platform() -> None: | |||
| 38 | 43 | is_posix = git.compat.is_posix | |
| 39 | 44 | is_darwin = git.compat.is_darwin | |
| 40 | 45 | ||
| 46 | + assert_type(is_win, bool) | ||
| 47 | + assert_type(is_posix, bool) | ||
| 48 | + assert_type(is_darwin, bool) | ||
| 49 | + | ||
| 41 | 50 | messages = [str(entry.message) for entry in ctx] | |
| 42 | 51 | assert len(messages) == 3 | |
| 43 | 52 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments