From e2434cddb43390ad9c3734a60ad1180c0ac686f0 Mon Sep 17 00:00:00 2001 From: Fize Jacques <jacques.fize@cirad.fr> Date: Wed, 6 Feb 2019 23:40:43 +0100 Subject: [PATCH] mod Travis.yml +test.py --- .travis.yml | 2 +- gmatch4py/test/test.py | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6d510f8..459b5f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,4 @@ install: - python setup.py build_ext --inplace script: - - pytest \ No newline at end of file + - pytest gmatch4py/test/test.py \ No newline at end of file diff --git a/gmatch4py/test/test.py b/gmatch4py/test/test.py index 3db601c..52937c4 100644 --- a/gmatch4py/test/test.py +++ b/gmatch4py/test/test.py @@ -4,8 +4,7 @@ import pytest def nimport(): # Gmatch4py use networkx graph import networkx as nx - # import the GED using the munkres algorithm - import gmatch4py as gm + def test_import(): nimport() @@ -13,14 +12,7 @@ def test_import(): def ged(): import networkx as nx # import the GED using the munkres algorithm - import gmatch4py as gm - g1=nx.complete_bipartite_graph(5,4) - g2=nx.complete_bipartite_graph(6,4) - ged=gm.GraphEditDistance(1,1,1,1) # all edit costs are equal to 1 - assert ged.compare([g1,g2],None).all() == ged.compare([g1,g2],None).all() - ged=gm.HED(1,1,1,1) # all edit costs are equal to 1 - assert ged.compare([g1,g2],None).all() == ged.compare([g1,g2],None).all() - + def test_ged(): ged() \ No newline at end of file -- GitLab