Files
models/tests/test_interfaces.py
Roberto Treviño Cervantes ca9d3ad81f initial commit
2026-09-21 10:23:42 -06:00

20 lines
508 B
Python

import pytest
from models.cacu import CaCuModel
from models.cama import CaMaModel
from models.tea import TeaModel
@pytest.mark.parametrize("cls", [CaCuModel, CaMaModel, TeaModel])
def test_train_not_implemented(cls):
model = cls()
with pytest.raises(NotImplementedError):
model.train()
@pytest.mark.parametrize("cls", [CaCuModel, CaMaModel, TeaModel])
def test_predict_not_implemented(cls):
model = cls()
with pytest.raises(NotImplementedError):
model.predict(data=None)