1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-12 22:42:28 +00:00

Avoid writing gexf in test

This commit is contained in:
J. Fernando Sánchez 2019-04-30 16:16:46 +02:00
parent c32e167fb8
commit 1cf85ea450
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,7 @@
test:
quick-test:
docker-compose exec dev python -m pytest -s -v
.PHONY: test
test:
docker run -t -v $$PWD:/usr/src/app -w /usr/src/app python:3.7 python setup.py test
.PHONY: test

View File

@ -1,6 +1,7 @@
from unittest import TestCase
import os
import io
import yaml
import pickle
import networkx as nx
@ -217,7 +218,8 @@ class TestMain(TestCase):
"""
G = nx.random_geometric_graph(20, 0.1)
env = Environment(topology=G)
env.dump_gexf('/tmp/dump-gexf/prueba.gexf')
f = io.BytesIO()
env.dump_gexf(f)
def test_save_graph(self):
'''