Add basic test for DevDocNeeded model (#661)

Fixes #435
This commit is contained in:
Yun Seob Lee 2019-07-01 05:46:52 -04:00 коммит произвёл Marco
Родитель c187007c73
Коммит f836f25291
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from bugbug.models.devdocneeded import DevDocNeededModel
def test_get_devdocneeded_labels():
model = DevDocNeededModel()
classes, _ = model.get_labels()
assert classes[528988] == 0
assert classes[1053944] == 1
assert classes[1531080] == 1