forked from enviPath/enviPy
start towards #120
This commit is contained in:
@ -2,7 +2,7 @@ from django.test import TestCase
|
||||
|
||||
from epdb.logic import PackageManager
|
||||
from epdb.models import Reaction, Compound, User, Rule
|
||||
from utilities.ml import Dataset
|
||||
from utilities.ml import RuleBasedDataset
|
||||
|
||||
|
||||
class DatasetTest(TestCase):
|
||||
@ -46,7 +46,7 @@ class DatasetTest(TestCase):
|
||||
reactions = [r for r in Reaction.objects.filter(package=self.package)]
|
||||
applicable_rules = [self.rule1]
|
||||
|
||||
ds = Dataset.generate_dataset(reactions, applicable_rules)
|
||||
ds = RuleBasedDataset.generate_dataset(reactions, applicable_rules)
|
||||
|
||||
self.assertEqual(len(ds.y()), 1)
|
||||
self.assertEqual(sum(ds.y()[0]), 1)
|
||||
|
||||
Reference in New Issue
Block a user