Add basic test for the Regression model (#618)

This commit is contained in:
Yun Seob Lee 2019-06-22 15:44:31 -04:00 коммит произвёл Marco
Родитель 511a53a1de
Коммит af569c9c8e
1 изменённых файлов: 14 добавлений и 0 удалений

14
tests/test_regression.py Normal file
Просмотреть файл

@ -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.regression import RegressionModel
def test_get_regression_labels():
model = RegressionModel()
classes, _ = model.get_labels()
assert classes[447581] == 0
assert classes[518272] == 1