Commit e7dda4f5 authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

dhparser fixed

parent cd69c3fd
......@@ -207,7 +207,7 @@ def create_project(path: str):
create_file('', README_TEMPLATE.format(name=name))
create_file('' % name,
GRAMMAR_TEST_TEMPLATE.format(name=name, dhparserdir=dhparserdir))
create_file('example.xml', 'Life is but a walking shadow\n')
create_file('example.dsl', 'Life is but a walking shadow\n')
os.chmod('' % name, 0o755)
# The following is left to the user as an exercise
# print('Creating file "%s".' % (name + ''))
......@@ -45,10 +45,11 @@ class TestDHParserCommandLineTool:
def test_dhparser(self):
os.system('python ../ testdata/neu >/dev/null')
os.system('python testdata/neu/ >/dev/null')
os.system('python testdata/neu/ testdata/neu/example.xml >testdata/neu/example.xml')
os.system('python testdata/neu/ testdata/neu/example.dsl '
with open('testdata/neu/example.xml', 'r', encoding='utf-8') as f:
xml =
assert xml.find('<document>') >= 0
assert xml.find('<document>') >= 0, xml
if __name__ == "__main__":
from DHParser.testing import runner
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment