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:
parent
c32e167fb8
commit
1cf85ea450
7
Makefile
7
Makefile
@ -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
|
||||
|
@ -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):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user