11from bedevere import prtype
2- from bedevere .prtype import Category
2+ from bedevere .prtype import Labels
33
44
55class FakeGH :
@@ -62,7 +62,7 @@ async def test_news_only():
6262 }
6363 await prtype .classify_by_filepaths (gh , event_data ['pull_request' ], filenames )
6464 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.
6666 assert len (gh .post_url ) == 0
6767 assert len (gh .post_data ) == 0
6868
@@ -85,7 +85,7 @@ async def test_docs_no_news():
8585 assert gh .getitem_url == 'https://api.github.com/repos/cpython/python/issue/1234'
8686 assert len (gh .post_url ) == 1
8787 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 ]
8989
9090
9191async def test_docs_and_news ():
@@ -106,7 +106,7 @@ async def test_docs_and_news():
106106 assert gh .getitem_url == 'https://api.github.com/repos/cpython/python/issue/1234'
107107 assert len (gh .post_url ) == 1
108108 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 ]
110110
111111
112112async def test_tests_only ():
@@ -127,7 +127,7 @@ async def test_tests_only():
127127 assert gh .getitem_url == 'https://api.github.com/repos/cpython/python/issue/1234'
128128 assert len (gh .post_url ) == 1
129129 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 ]
131131
132132
133133async def test_docs_and_tests ():
@@ -149,7 +149,7 @@ async def test_docs_and_tests():
149149 # Only creates type-tests label.
150150 assert len (gh .post_url ) == 1
151151 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 ]
153153
154154
155155async def test_leave_existing_type_labels ():
@@ -191,7 +191,7 @@ async def test_news_and_tests():
191191 # Creates type-tests label.
192192 assert len (gh .post_url ) == 1
193193 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 ]
195195
196196
197197async def test_other_files ():
0 commit comments