move tests to tests subpackage
This commit is contained in:
@@ -25,4 +25,4 @@ except IOError as ex:
|
|||||||
__version__ = "unknown (%s)" % ex
|
__version__ = "unknown (%s)" % ex
|
||||||
|
|
||||||
# import top-level functionality
|
# import top-level functionality
|
||||||
from .timeparse import timeparse
|
from .timeparse import timeparse as parse
|
||||||
|
|||||||
9
pytimeparse/tests/__init__.py
Normal file
9
pytimeparse/tests/__init__.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
'''
|
||||||
|
__init__.py
|
||||||
|
(c) Will Roberts 18 February, 2015
|
||||||
|
|
||||||
|
pytimeparse.tests module
|
||||||
|
'''
|
||||||
@@ -8,9 +8,10 @@ testtimeparse.py
|
|||||||
Unit tests for the `timeparse` module.
|
Unit tests for the `timeparse` module.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
import doctest
|
import doctest
|
||||||
import re
|
import re
|
||||||
from pytimeparse import timeparse
|
from .. import timeparse
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
class TestTimeparse(unittest.TestCase):
|
class TestTimeparse(unittest.TestCase):
|
||||||
Reference in New Issue
Block a user