mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 11:22:28 +12:00
Adding unit test
This commit is contained in:
parent
e9be022430
commit
84466b90e3
4
manuskript/tests/__init__.py
Normal file
4
manuskript/tests/__init__.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
# --!-- coding: utf8 --!--
|
||||
|
||||
"""Tests."""
|
12
manuskript/tests/models/test_outlineItem.py
Normal file
12
manuskript/tests/models/test_outlineItem.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python
|
||||
# --!-- coding: utf8 --!--
|
||||
|
||||
"""Tests for outlineItem"""
|
||||
|
||||
|
||||
def square(i):
|
||||
return i*i
|
||||
|
||||
def test_square():
|
||||
assert square(2) == 4
|
||||
assert square(-2) == 4
|
Loading…
Reference in a new issue