Closed
Description
Trying to integrate #262 into the dev branch. We are running into the following test failures:
- DataIntegrityTest.test_neuron_GJ_degree() returns the wrong value
- DataIntegrityTest.test_neuron_Syn_degree() returns the wrong value
- Within the documentation tests, the following lines of the README are raising similar errors on lines 54, 116, and 197.
Full output below:
=================================== FAILURES ===================================
___________________ DataIntegrityTest.test_neuron_GJ_degree ____________________
self = <tests.DataIntegrityTest.DataIntegrityTest testMethod=test_neuron_GJ_degree>
def test_neuron_GJ_degree(self):
""" Get the number of gap junctions from a networkx representation """
> self.assertEqual(PyOpenWorm.Neuron(name='AVAL').GJ_degree(), 81)
E AssertionError: 44 != 81
tests/DataIntegrityTest.py:136: AssertionError
___________________ DataIntegrityTest.test_neuron_Syn_degree ___________________
self = <tests.DataIntegrityTest.DataIntegrityTest testMethod=test_neuron_Syn_degree>
def test_neuron_Syn_degree(self):
""" Get the number of chemical synapses from a networkx representation """
> self.assertEqual(PyOpenWorm.Neuron(name='AVAL').Syn_degree(), 187)
E AssertionError: 105 != 187
tests/DataIntegrityTest.py:140: AssertionError
________________________ DocumentationTest.test_readme _________________________
self = <tests.DocumentationTest.DocumentationTest testMethod=test_readme>
def test_readme(self):
[failure_count, return_count] = doctest.testfile("../README.md")
> self.assertEqual(failure_count, 0)
E AssertionError: 3 != 0
tests/DocumentationTest.py:25: AssertionError
----------------------------- Captured stdout call -----------------------------
**********************************************************************
File "/home/travis/build/openworm/PyOpenWorm/tests/../README.md", line 54, in README.md
Failed example:
aval.connection.count('pre')
Expected:
157
Got:
86
**********************************************************************
File "/home/travis/build/openworm/PyOpenWorm/tests/../README.md", line 116, in README.md
Failed example:
aval.Syn_degree()
Expected:
187
Got:
105
**********************************************************************
File "/home/travis/build/openworm/PyOpenWorm/tests/../README.md", line 197, in README.md
Failed example:
len(innervates_mdr21)
Expected:
4
Got:
0
**********************************************************************
1 items had failures:
3 of 35 in README.md
***Test Failed*** 3 failures.