-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Soliciting tests #35
Comments
One possible test for the fraction of active edges is to make a comparison with the analytical solution: |
@lubo93 and for this test we run the |
To generate simple networks for tests we can use the following code courtesy of Dr. Boettcher (@lubo93 ): import networkx as nx
# seed random number generators in *both* numpy.random and random
nodes = 500
attachment = 2
contact_network = nx.barabasi_albert_graph(nodes, attachment) This generates a graph using the Barbasi-Albert model. |
I'm going to put together some tests using
pytest
.It's fairly simple: we'll just have a folder called
/test
, and files namedtest_*
that implement tests according to thepytest
style.I'll put in basic unit tests that ensure that critical functions runs, and some "regression" style tests that ensure output is reproducible.
However, we will also need tests that ensure behavior is correct. These are more difficult to come up with. We can discuss ideas on this issue. A few ideas:
The text was updated successfully, but these errors were encountered: