-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_4pytest.py
More file actions
39 lines (27 loc) · 852 Bytes
/
test_4pytest.py
File metadata and controls
39 lines (27 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Python Module for import Date : 2018-04-07
# vim: set fileencoding=utf-8 ff=unix tw=78 ai syn=python : Python PEP 0263
'''
_______________| test_4pytest : Test pytest within integration like Travis.
$ py.test --doctest-modules
REFERENCE:
pytest: https://pytest.org/latest/getting-started.html
or PDF at http://pytest.org/latest/pytest.pdf
CHANGE LOG
2018-04-07 Add fadd and its doctest. Conform to flake8.
2018-04-06 First version to dummy testing.
'''
from __future__ import absolute_import, print_function
def test_assert_try_repo():
'''Dummy test.'''
assert "Hello" == "Hello"
def fadd(x, y):
'''Simple fuction.'''
return x+y
def test_fadd_try_repo():
'''Test fadd as doctest.
>>> fadd(2, 3)
5
'''
pass
if __name__ == "__main__":
pass