1
0
Fork 0
Old engine for Continuous Time Bayesian Networks. Superseded by reCTBN. 🐍 https://github.com/madlabunimib/PyCTBN
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
PyCTBN/venv/lib/python3.9/site-packages/networkx/tests/test_exceptions.py

40 lines
926 B

import pytest
import networkx as nx
# smoke tests for exceptions
def test_raises_networkxexception():
with pytest.raises(nx.NetworkXException):
raise nx.NetworkXException
def test_raises_networkxerr():
with pytest.raises(nx.NetworkXError):
raise nx.NetworkXError
def test_raises_networkx_pointless_concept():
with pytest.raises(nx.NetworkXPointlessConcept):
raise nx.NetworkXPointlessConcept
def test_raises_networkxalgorithmerr():
with pytest.raises(nx.NetworkXAlgorithmError):
raise nx.NetworkXAlgorithmError
def test_raises_networkx_unfeasible():
with pytest.raises(nx.NetworkXUnfeasible):
raise nx.NetworkXUnfeasible
def test_raises_networkx_no_path():
with pytest.raises(nx.NetworkXNoPath):
raise nx.NetworkXNoPath
def test_raises_networkx_unbounded():
with pytest.raises(nx.NetworkXUnbounded):
raise nx.NetworkXUnbounded