Now correctly parse current_assets. The gaap tag name is called
us-gaap:AssetsCurrent not "currentassets" as was being searched for.
Current search regexp by including [^s] would incorrectly match on fields like
NoncurrentAssets
The assets tag was also matching other unwanted terms suchs as OtherAssets.
These were then selected by data_processing
Beautiful Soup will return, when using a regexp, all tags
containing the substrings .
The calculation for gaap_obj.non_current_assets was incorrect
Many of the tests in tests/test_parse.py were making incorrect assertions:
As determined by manually looking in the xml files to find the
correct values for a given context
For example
The test_parse_GAAP10Q_QXInteractive() this was incorrectly checking for a
assert result.data['current_assets'] == 46431.0
The only tag containing a value of 46431 in the file "tests/rsh-20131231.xml"
is that for Noncurrentassets!
It appears that this test had been written to validate the
incorrect parsing.
Now correctly parse current_assets. The gaap tag name is called us-gaap:AssetsCurrent not "currentassets" as was being searched for.
The assets tag was also matching other unwanted terms suchs as OtherAssets.
The calculation for gaap_obj.non_current_assets was incorrect
Many of the tests in tests/test_parse.py were making incorrect assertions:
As determined by manually looking in the xml files to find the correct values for a given context
For example
The test_parse_GAAP10Q_QXInteractive() this was incorrectly checking for a assert result.data['current_assets'] == 46431.0 The only tag containing a value of 46431 in the file "tests/rsh-20131231.xml" is that for Noncurrentassets! It appears that this test had been written to validate the incorrect parsing.