Commit cfd73d5a authored by Chris Trevino's avatar Chris Trevino

Add networkx

parent fd6e0bf4
package:
name: decorator
version: 4.3.0
source:
url: https://files.pythonhosted.org/packages/6f/24/15a229626c775aae5806312f6bf1e2a73785be3402c0acdec5dbddd8c11e/decorator-4.3.0.tar.gz
sha256: c39efa13fbdeb4506c476c9b3babf6a718da943dab7811c206005a4a956c080c
package:
name: networkx
version: '2.2'
source:
url: https://files.pythonhosted.org/packages/f3/f4/7e20ef40b118478191cec0b58c3192f822cace858c19505c7670961b76b2/networkx-2.2.zip
sha256: 45e56f7ab6fe81652fb4bc9f44faddb0e9025f469f602df14e3b2551c2ea5c8b
requirements:
run:
- decorator
- setuptools
test:
imports:
- networkx
\ No newline at end of file
from textwrap import dedent
import pytest
def test_networkx_basicgraph(selenium_standalone, request):
selenium = selenium_standalone
if selenium.browser == 'chrome':
request.applymarker(pytest.mark.xfail(
run=False, reason='chrome not supported'))
selenium.load_package(['networkx', 'numpy'])
cmd = dedent(r"""
import networkx as nx
from numpy.testing import assert_equal
G = nx.Graph()
G.add_nodes_from([1,2,3])
G.add_edges_from([(1,2), (1,3)])
assert_equal(3, G.number_of_nodes())
assert_equal(2, G.number_of_edges())
""")
selenium.run(cmd)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment