| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f4e5f42 commit d54f851
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,3 +51,17 @@ def test_is_platform() -> None: | |||
| 51 | 51 | assert is_win == (os.name == "nt") | |
| 52 | 52 | assert is_posix == (os.name == "posix") | |
| 53 | 53 | assert is_darwin == (sys.platform == "darwin") | |
| 54 | + | ||
| 55 | + | ||
| 56 | + def test_dir() -> None: | ||
| 57 | + """dir() on git.compat lists attributes meant to be public, even if deprecated.""" | ||
| 58 | + expected = { | ||
| 59 | + "defenc", | ||
| 60 | + "safe_decode", | ||
| 61 | + "safe_encode", | ||
| 62 | + "win_encode", | ||
| 63 | + "is_darwin", | ||
| 64 | + "is_win", | ||
| 65 | + "is_posix", | ||
| 66 | + } | ||
| 67 | + assert expected <= set(dir(git.compat)) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments