Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Co-Authored-By: Daniel Domingo-Fernández <[email protected]>
  • Loading branch information
cthoyt and ddomingof committed Apr 18, 2018
1 parent a437bd0 commit a828563
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_enrich.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ def test_get_pathway_graph(self):
def test_enrich_wikipathway_pathway(self):
graph_example = enrichment_graph()

enriched_graph = self.manager.enrich_wikipathways_pathway(graph_example)
self.manager.enrich_wikipathways_pathway(graph_example)

self.assertEqual(6, enriched_graph.number_of_nodes()) # 4 nodes + 2 new
self.assertEqual(5, enriched_graph.number_of_edges()) # 3 + 2 new
self.assertEqual(6, graph_example.number_of_nodes()) # 4 nodes + 2 new
self.assertEqual(5, graph_example.number_of_edges()) # 3 + 2 new

def test_enrich_wikipathway_protein(self):
graph_example = enrichment_graph()

enriched_graph = self.manager.enrich_wikipathways_protein(graph_example)
self.manager.enrich_wikipathways_protein(graph_example)

self.assertEqual(6, enriched_graph.number_of_nodes()) # 4 + 2 new pathways
self.assertEqual(5, enriched_graph.number_of_edges()) # 3 + 2 new
self.assertEqual(6, graph_example.number_of_nodes()) # 4 + 2 new pathways
self.assertEqual(5, graph_example.number_of_edges()) # 3 + 2 new

0 comments on commit a828563

Please sign in to comment.