We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bce9059 commit 6754910Copy full SHA for 6754910
1 file changed
tests/test_parse.py
@@ -1,21 +1,18 @@
1
import os
2
-from unittest import TestCase
3
import sys
4
-sys.path.insert(0, os.path.abspath('..'))
+sys.path.insert(0, os.path.abspath('python-xbrl'))
+import pytest
5
6
-import six
+try:
7
+ from StringIO import StringIO
8
+except ImportError:
9
+ from io import StringIO
10
11
from parser import soup_maker, XBRLParser, XBRLParserException
12
-class TestParse(TestCase):
13
+class TestParse():
14
15
def testEmptyFile(self):
- fh = six.BytesIO(six.b(""))
- self.assertRaises(XBRLParserException, XBRLParser.parse, fh)
16
+ fh = StringIO()
17
+ assert XBRLParser.parse(fh) is None
18
- #def test_parse(self):
- # make sure the shuffled sequence does not lose any elements
-
19
20
-if __name__ == '__main__':
21
- unittest.main()
0 commit comments