1
1
from bedevere import prtype
2
- from bedevere .prtype import Category
2
+ from bedevere .prtype import Labels
3
3
4
4
5
5
class FakeGH :
@@ -62,7 +62,7 @@ async def test_news_only():
62
62
}
63
63
await prtype .classify_by_filepaths (gh , event_data ['pull_request' ], filenames )
64
64
assert gh .getitem_url == 'https://api.github.com/repos/cpython/python/issue/1234'
65
- # News only .rst does not add a type-documentation label.
65
+ # News only .rst does not add a docs label.
66
66
assert len (gh .post_url ) == 0
67
67
assert len (gh .post_data ) == 0
68
68
@@ -85,7 +85,7 @@ async def test_docs_no_news():
85
85
assert gh .getitem_url == 'https://api.github.com/repos/cpython/python/issue/1234'
86
86
assert len (gh .post_url ) == 1
87
87
assert gh .post_url [0 ] == 'https://api.github.com/some/label'
88
- assert gh .post_data [0 ] == [Category . documentation .value ]
88
+ assert gh .post_data [0 ] == [Labels . docs .value ]
89
89
90
90
91
91
async def test_docs_and_news ():
@@ -106,7 +106,7 @@ async def test_docs_and_news():
106
106
assert gh .getitem_url == 'https://api.github.com/repos/cpython/python/issue/1234'
107
107
assert len (gh .post_url ) == 1
108
108
assert gh .post_url [0 ] == 'https://api.github.com/some/label'
109
- assert gh .post_data [0 ] == [Category . documentation .value ]
109
+ assert gh .post_data [0 ] == [Labels . docs .value ]
110
110
111
111
112
112
async def test_tests_only ():
@@ -127,7 +127,7 @@ async def test_tests_only():
127
127
assert gh .getitem_url == 'https://api.github.com/repos/cpython/python/issue/1234'
128
128
assert len (gh .post_url ) == 1
129
129
assert gh .post_url [0 ] == 'https://api.github.com/some/label'
130
- assert gh .post_data [0 ] == [Category .tests .value ]
130
+ assert gh .post_data [0 ] == [Labels .tests .value ]
131
131
132
132
133
133
async def test_docs_and_tests ():
@@ -149,7 +149,7 @@ async def test_docs_and_tests():
149
149
# Only creates type-tests label.
150
150
assert len (gh .post_url ) == 1
151
151
assert gh .post_url [0 ] == 'https://api.github.com/some/label'
152
- assert gh .post_data [0 ] == [Category .tests .value ]
152
+ assert gh .post_data [0 ] == [Labels .tests .value ]
153
153
154
154
155
155
async def test_leave_existing_type_labels ():
@@ -191,7 +191,7 @@ async def test_news_and_tests():
191
191
# Creates type-tests label.
192
192
assert len (gh .post_url ) == 1
193
193
assert gh .post_url [0 ] == 'https://api.github.com/some/label'
194
- assert gh .post_data [0 ] == [Category .tests .value ]
194
+ assert gh .post_data [0 ] == [Labels .tests .value ]
195
195
196
196
197
197
async def test_other_files ():
0 commit comments