Skip to content

Instantly share code, notes, and snippets.

@opotowsky
Last active April 25, 2016 18:23
Show Gist options
  • Save opotowsky/b618c278d21bed6017bd40b77c19cd2c to your computer and use it in GitHub Desktop.
Save opotowsky/b618c278d21bed6017bd40b77c19cd2c to your computer and use it in GitHub Desktop.
The two failing tests in cymetric, and two passing (InventoryName is a vl string)
opy_eats_macaron ~/cyclus/cymetric/tests (expinv) $ nosetests -x -s test_metrics.py:test_agents
/home/opy/cyclus/cymetric/tests/test_metrics.py:17: QAWarning: pyne.data is not yet QA compliant.
from pyne import data
/home/opy/cyclus/cymetric/tests/test_metrics.py:18: QAWarning: pyne.material is not yet QA compliant.
import pyne.enrichment as enr
/home/opy/cyclus/cymetric/tests/test_metrics.py:18: QAWarning: pyne.enrichment is not yet QA compliant.
import pyne.enrichment as enr
F
======================================================================
FAIL: test_metrics.test_agents
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/opy/cyclus/cymetric/tests/test_metrics.py", line 140, in test_agents
assert_frame_equal(exp, obs)
File "/home/opy/.local/lib/python2.7/site-packages/pandas/util/testing.py", line 1024, in assert_frame_equal
obj='{0}.columns'.format(obj))
File "/home/opy/.local/lib/python2.7/site-packages/pandas/util/testing.py", line 653, in assert_index_equal
_check_types(left, right)
File "/home/opy/.local/lib/python2.7/site-packages/pandas/util/testing.py", line 634, in _check_types
assertIn(r.inferred_type, ('string', 'unicode'))
File "/home/opy/.local/lib/python2.7/site-packages/pandas/util/testing.py", line 754, in assertIn
assert a in b, "%s: %r is not in %r" % (msg.format(a, b), a, b)
AssertionError: : 'mixed' is not in ('string', 'unicode')
----------------------------------------------------------------------
Ran 1 test in 0.050s
FAILED (failures=1)
opy_eats_macaron ~/cyclus/cymetric/tests (expinv) $ nosetests -x -s test_metrics.py:test_transaction_quantity
/home/opy/cyclus/cymetric/tests/test_metrics.py:17: QAWarning: pyne.data is not yet QA compliant.
from pyne import data
/home/opy/cyclus/cymetric/tests/test_metrics.py:18: QAWarning: pyne.material is not yet QA compliant.
import pyne.enrichment as enr
/home/opy/cyclus/cymetric/tests/test_metrics.py:18: QAWarning: pyne.enrichment is not yet QA compliant.
import pyne.enrichment as enr
F
======================================================================
FAIL: test_metrics.test_transaction_quantity
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/opy/cyclus/cymetric/tests/test_metrics.py", line 262, in test_transaction_quantity
assert_frame_equal(exp, obs)
File "/home/opy/.local/lib/python2.7/site-packages/pandas/util/testing.py", line 1024, in assert_frame_equal
obj='{0}.columns'.format(obj))
File "/home/opy/.local/lib/python2.7/site-packages/pandas/util/testing.py", line 653, in assert_index_equal
_check_types(left, right)
File "/home/opy/.local/lib/python2.7/site-packages/pandas/util/testing.py", line 634, in _check_types
assertIn(r.inferred_type, ('string', 'unicode'))
File "/home/opy/.local/lib/python2.7/site-packages/pandas/util/testing.py", line 754, in assertIn
assert a in b, "%s: %r is not in %r" % (msg.format(a, b), a, b)
AssertionError: : 'mixed' is not in ('string', 'unicode')
----------------------------------------------------------------------
Ran 1 test in 0.035s
FAILED (failures=1)
opy_eats_macaron ~/cyclus/cymetric/tests (expinv) $ nosetests -x -s test_metrics.py:test_explicit_inventory_by_agent
/home/opy/cyclus/cymetric/tests/test_metrics.py:17: QAWarning: pyne.data is not yet QA compliant.
from pyne import data
/home/opy/cyclus/cymetric/tests/test_metrics.py:18: QAWarning: pyne.material is not yet QA compliant.
import pyne.enrichment as enr
/home/opy/cyclus/cymetric/tests/test_metrics.py:18: QAWarning: pyne.enrichment is not yet QA compliant.
import pyne.enrichment as enr
.
----------------------------------------------------------------------
Ran 1 test in 0.014s
OK
opy_eats_macaron ~/cyclus/cymetric/tests (expinv) $ nosetests -x -s test_metrics.py:test_explicit_inventory_by_nuc
/home/opy/cyclus/cymetric/tests/test_metrics.py:17: QAWarning: pyne.data is not yet QA compliant.
from pyne import data
/home/opy/cyclus/cymetric/tests/test_metrics.py:18: QAWarning: pyne.material is not yet QA compliant.
import pyne.enrichment as enr
/home/opy/cyclus/cymetric/tests/test_metrics.py:18: QAWarning: pyne.enrichment is not yet QA compliant.
import pyne.enrichment as enr
.
----------------------------------------------------------------------
Ran 1 test in 0.012s
OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment