Esempio n. 1
0
    def test_property_dtypes_fail(self):
        a = pd.Series(data=[dtype('int64'), dtype('O')],
                      index=['layer', 'model_template']).sort_index()
        b = pd.Series(data=[dtype('int32'), dtype('O')],
                      index=['layer', 'model_template']).sort_index()

        with patch("bluepysnap.nodes.NodePopulation.property_dtypes",
                   new_callable=PropertyMock) as mock:
            mock.side_effect = [a, b]
            circuit = Circuit(str(TEST_DATA_DIR / 'circuit_config.json'))
            test_obj = test_module.Nodes(circuit)
            with pytest.raises(BluepySnapError):
                test_obj.property_dtypes.sort_index()
Esempio n. 2
0
 def setup(self):
     circuit = Circuit(str(TEST_DATA_DIR / 'circuit_config.json'))
     self.test_obj = test_module.Nodes(circuit)