MCPcopy Create free account
hub / github.com/Derive-Risk/pyfair / test_read_json

Method test_read_json

tests/model/test_model.py:37–43  ·  view source on GitHub ↗

Test static method for reading JSON

(self)

Source from the content-addressed store, hash-verified

35 self.assertEqual(len(model._model_table.columns), self.MODEL_TABLE_COLUMN_COUNT)
36
37 def test_read_json(self):
38 """Test static method for reading JSON"""
39 # Instantiate model
40 model = FairModel.read_json(self.MODEL_JSON)
41 self.assertTrue(model)
42 # Ensure metamodel fails
43 self.assertRaises(FairException, FairModel.read_json, self.META_MODEL_JSON)
44
45 def test_inspection(self):
46 """Check the inspection methods"""

Callers

nothing calls this directly

Calls 1

read_jsonMethod · 0.45

Tested by

no test coverage detected