From 8e0aad8633ea3484a5a679fef6d04f7249f1400a Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 20 Sep 2016 17:28:55 +0800 Subject: Setup package structures Credit: https://github.com/kennethreitz/samplemod TODO: Add the 'docs' part --- tests/__init__.py | 0 tests/context.py | 8 ++++++++ tests/test_advanced.py | 16 ++++++++++++++++ tests/test_basic.py | 16 ++++++++++++++++ 4 files changed, 40 insertions(+) create mode 100644 tests/__init__.py create mode 100644 tests/context.py create mode 100644 tests/test_advanced.py create mode 100644 tests/test_basic.py (limited to 'tests') diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/context.py b/tests/context.py new file mode 100644 index 0000000..352a47b --- /dev/null +++ b/tests/context.py @@ -0,0 +1,8 @@ +# -*- coding: utf-8 -*- + +import sys +import os + +sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) + +import fg21sim diff --git a/tests/test_advanced.py b/tests/test_advanced.py new file mode 100644 index 0000000..1ae151c --- /dev/null +++ b/tests/test_advanced.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +from .context import fg21sim + +import unittest + + +class AdvancedTestSuite(unittest.TestCase): + """Advanced test cases.""" + + def test_thoughts(self): + sample.hmm() + + +if __name__ == '__main__': + unittest.main() diff --git a/tests/test_basic.py b/tests/test_basic.py new file mode 100644 index 0000000..ea50cf3 --- /dev/null +++ b/tests/test_basic.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +from .context import fg21sim + +import unittest + + +class BasicTestSuite(unittest.TestCase): + """Basic test cases.""" + + def test_absolute_truth_and_meaning(self): + assert True + + +if __name__ == '__main__': + unittest.main() -- cgit v1.2.2