| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ff4b58d commit 2c52696
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,3 +50,21 @@ def test_diff_renamed_file_does_not_warn(diff): | |||
| 50 | 50 | """The preferred Diff.renamed_file property issues no deprecation warning.""" | |
| 51 | 51 | with _assert_no_deprecation_warning(): | |
| 52 | 52 | diff.renamed_file | |
| 53 | + | ||
| 54 | + | ||
| 55 | + def test_commit_trailers_warns(commit): | ||
| 56 | + """The deprecated Commit.trailers property issues a deprecation warning.""" | ||
| 57 | + with pytest.deprecated_call(): | ||
| 58 | + commit.trailers | ||
| 59 | + | ||
| 60 | + | ||
| 61 | + def test_commit_trailers_list_does_not_warn(commit): | ||
| 62 | + """The nondeprecated Commit.trailers_list property issues no deprecation warning.""" | ||
| 63 | + with _assert_no_deprecation_warning(): | ||
| 64 | + commit.trailers_list | ||
| 65 | + | ||
| 66 | + | ||
| 67 | + def test_commit_trailers_dict_does_not_warn(commit): | ||
| 68 | + """The nondeprecated Commit.trailers_dict property issues no deprecation warning.""" | ||
| 69 | + with _assert_no_deprecation_warning(): | ||
| 70 | + commit.trailers_dict | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments