mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
add testing scaffold, #28
This commit is contained in:
parent
19a1db7038
commit
59049a87f0
1 changed files with 33 additions and 0 deletions
33
test_jrnl.py
Normal file
33
test_jrnl.py
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# encoding: utf-8
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
class TestClasses(unittest.TestCase):
|
||||||
|
"""Test the behavior of the classes.
|
||||||
|
|
||||||
|
tests related to the Journal and the Entry Classes which can
|
||||||
|
be tested withouth command-line interaction
|
||||||
|
"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_colon_in_textbody(self):
|
||||||
|
"""colons should not cause problems in the text body"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class TestCLI(unittest.TestCase):
|
||||||
|
"""test the command-line interaction part of the program"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_something(self):
|
||||||
|
"""first test"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
Loading…
Add table
Reference in a new issue