Skip to content
Snippets Groups Projects
Commit 44931937 authored by Jan Maximilian Michal's avatar Jan Maximilian Michal
Browse files

Setuup test framework

parent 28e8774d
No related branches found
Tags 0.1
No related merge requests found
File moved
......@@ -272,8 +272,7 @@ def handle_new_script(name, qtype, author, points):
if qtype in ['multiple choice', 'single choice']:
choice = '\nchoices = """\n[X] A\n[ ] B\n[ ] C\n[X] D\n"""\n'
print(scaffolding.format(
author, base, qtype, points, choice).strip(), file=new_script)
print(scaffolding.format(author, base, qtype, points, choice).strip(), file=new_script)
info('Generated new script "{}."'.format(new_script.name))
......
......@@ -14,7 +14,7 @@ setup(
author_email='mail-github@jmx.io',
url='https://gitlab.gwdg.de/j.michal/ilias-generator',
license='MIT',
scripts=['hallgrim/bin/hallgrim'],
scripts=['bin/hallgrim'],
install_requires=['mistune', 'pygments', 'requests', 'requests_toolbelt'],
packages=['hallgrim']
)
# -*- coding: utf-8 -*-
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import hallgrim
# -*- coding: utf-8 -*-
from .context import hallgrim
import unittest
class AdvancedTestSuite(unittest.TestCase):
"""Advanced test cases."""
def test_markdown(self):
markdown = hallgrim.custom_markdown.get_markdown()
assert markdown("** BOLD **") == "<p><strong> BOLD </strong></p>\n"
if __name__ == '__main__':
unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment