|
3 | 3 |
|
4 | 4 |
|
5 | 5 | def test_angular_style_feat(): |
6 | | - subject = 'feat: this is a new feature' |
7 | | - commit = Commit('aaaaaaa', |
8 | | - subject=subject, |
9 | | - author_date='1574340645', |
10 | | - committer_date='1574340645', |
11 | | - ) |
| 6 | + subject = "feat: this is a new feature" |
| 7 | + commit = Commit("aaaaaaa", subject=subject, author_date="1574340645", committer_date="1574340645",) |
12 | 8 | style = AngularStyle() |
13 | 9 | commit_dict = style.parse_commit(commit) |
14 | | - assert not commit_dict['is_major'] |
15 | | - assert commit_dict['is_minor'] |
16 | | - assert not commit_dict['is_patch'] |
| 10 | + assert not commit_dict["is_major"] |
| 11 | + assert commit_dict["is_minor"] |
| 12 | + assert not commit_dict["is_patch"] |
17 | 13 |
|
18 | 14 |
|
19 | 15 | def test_angular_style_fix(): |
20 | | - subject = 'fix: this is a bug fix' |
21 | | - commit = Commit('aaaaaaa', |
22 | | - subject=subject, |
23 | | - author_date='1574340645', |
24 | | - committer_date='1574340645', |
25 | | - ) |
| 16 | + subject = "fix: this is a bug fix" |
| 17 | + commit = Commit("aaaaaaa", subject=subject, author_date="1574340645", committer_date="1574340645",) |
26 | 18 | style = AngularStyle() |
27 | 19 | commit_dict = style.parse_commit(commit) |
28 | | - assert not commit_dict['is_major'] |
29 | | - assert not commit_dict['is_minor'] |
30 | | - assert commit_dict['is_patch'] |
| 20 | + assert not commit_dict["is_major"] |
| 21 | + assert not commit_dict["is_minor"] |
| 22 | + assert commit_dict["is_patch"] |
0 commit comments