10 lines
302 B
Python
10 lines
302 B
Python
|
|
import unittest
|
||
|
|
|
||
|
|
from cockpit_grounding.models.factory import create_grounder
|
||
|
|
|
||
|
|
|
||
|
|
class ModelFactoryTest(unittest.TestCase):
|
||
|
|
def test_rejects_unknown_backend(self) -> None:
|
||
|
|
with self.assertRaisesRegex(ValueError, "Unsupported model backend"):
|
||
|
|
create_grounder("unknown", "/model")
|