1a7b25c16209916dc248ccc99cd1e2eedf8de103,deepchem/feat/tests/test_molecule_graph.py,TestMoleculeGraph,test_invalid_molecule_graph_data,#TestMoleculeGraph#,31
Before Change
def test_invalid_molecule_graph_data(self):
with pytest.raises(ValueError):
invalid_node_features = [[0, 1, 2, 3, 4], [5, 6, 7, 8]]
edge_index = np.ones((2, 5))
targets = np.ones(5)
mol_graph = MoleculeGraphData(
node_features=invalid_node_features,
After Change
)
with pytest.raises(TypeError):
node_features = np.random.random_sample((5, 5))
mol_graph = MoleculeGraphData(node_features=node_features)
def test_batch_molecule_graph_data(self):
num_nodes_list, num_edge_list = [3, 4, 5], [2, 4, 5]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: deepchem/deepchem
Commit Name: 1a7b25c16209916dc248ccc99cd1e2eedf8de103
Time: 2020-07-15
Author: nd.12021218@gmail.com
File Name: deepchem/feat/tests/test_molecule_graph.py
Class Name: TestMoleculeGraph
Method Name: test_invalid_molecule_graph_data
Project Name: tensorly/tensorly
Commit Name: daa2c7ea2bf2c203ddef038f2eaf9d70bc07c7d4
Time: 2020-01-01
Author: roald.marie@gmail.com
File Name: tensorly/tests/test_parafac2_tensor.py
Class Name:
Method Name: test_validate_parafac2_tensor
Project Name: nilearn/nilearn
Commit Name: fd0ae4e922f86fb7910d1d70318dbda4d14238c3
Time: 2013-04-05
Author: philippe.gervais@inria.fr
File Name: nisl/tests/test_signals.py
Class Name:
Method Name: test_standardize