Skip to content

Commit 2b5e007

Browse files
committed
style: Lint
1 parent c711a8c commit 2b5e007

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

tests/test_angular_style.py

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,20 @@
33

44

55
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",)
128
style = AngularStyle()
139
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"]
1713

1814

1915
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",)
2618
style = AngularStyle()
2719
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

Comments
 (0)