11from bedevere import prtype
2+ from bedevere .prtype import Category
23
34
45class FakeGH :
@@ -84,7 +85,7 @@ async def test_docs_no_news():
8485 assert gh .getitem_url == 'https://api.github.com/repos/cpython/python/issue/1234'
8586 assert len (gh .post_url ) == 1
8687 assert gh .post_url [0 ] == 'https://api.github.com/some/label'
87- assert gh .post_data [0 ] == ['type- documentation' ]
88+ assert gh .post_data [0 ] == [Category . documentation . value ]
8889
8990
9091async def test_docs_and_news ():
@@ -105,7 +106,7 @@ async def test_docs_and_news():
105106 assert gh .getitem_url == 'https://api.github.com/repos/cpython/python/issue/1234'
106107 assert len (gh .post_url ) == 1
107108 assert gh .post_url [0 ] == 'https://api.github.com/some/label'
108- assert gh .post_data [0 ] == ['type- documentation' ]
109+ assert gh .post_data [0 ] == [Category . documentation . value ]
109110
110111
111112async def test_tests_only ():
@@ -126,7 +127,7 @@ async def test_tests_only():
126127 assert gh .getitem_url == 'https://api.github.com/repos/cpython/python/issue/1234'
127128 assert len (gh .post_url ) == 1
128129 assert gh .post_url [0 ] == 'https://api.github.com/some/label'
129- assert gh .post_data [0 ] == ['type- tests' ]
130+ assert gh .post_data [0 ] == [Category . tests . value ]
130131
131132
132133async def test_docs_and_tests ():
@@ -148,7 +149,7 @@ async def test_docs_and_tests():
148149 # Only creates type-tests label.
149150 assert len (gh .post_url ) == 1
150151 assert gh .post_url [0 ] == 'https://api.github.com/some/label'
151- assert gh .post_data [0 ] == ['type- tests' ]
152+ assert gh .post_data [0 ] == [Category . tests . value ]
152153
153154
154155async def test_leave_existing_type_labels ():
@@ -190,7 +191,7 @@ async def test_news_and_tests():
190191 # Creates type-tests label.
191192 assert len (gh .post_url ) == 1
192193 assert gh .post_url [0 ] == 'https://api.github.com/some/label'
193- assert gh .post_data [0 ] == ['type- tests' ]
194+ assert gh .post_data [0 ] == [Category . tests . value ]
194195
195196
196197async def test_other_files ():
0 commit comments