Skip to content
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

Fix test failures in pull request #262 #265

Closed
slarson opened this issue Nov 22, 2015 · 1 comment
Closed

Fix test failures in pull request #262 #265

slarson opened this issue Nov 22, 2015 · 1 comment
Assignees
Labels

Comments

@slarson
Copy link
Member

slarson commented Nov 22, 2015

Trying to integrate #262 into the dev branch. We are running into the following test failures:

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.
@slarson slarson added the bug label Nov 22, 2015
@slarson slarson self-assigned this Nov 22, 2015
slarson added a commit that referenced this issue Dec 6, 2015
slarson added a commit that referenced this issue Dec 6, 2015
@slarson
Copy link
Member Author

slarson commented Dec 6, 2015

Just merged #262 so this is closed

@slarson slarson closed this as completed Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant