Skip to content

Commit 1d6f977

Browse files
author
abhishekram
committed
restructure test cases to be part of the library
1 parent 946d598 commit 1d6f977

37 files changed

+82
-24
lines changed

.coveragerc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[run]
2+
branch = True
3+
omit =
4+
*/site-packages/*
5+
*/tests/*
6+
7+
[report]
8+
exclude_lines =
9+
10+
# Don't complain about missing debug-only code:
11+
def __repr__
12+
def __str__
13+
14+
# Don't complain if tests don't hit defensive assertion code:
15+
raise AssertionError
16+
raise NotImplementedError
17+
assert
18+
19+
# Don't complain if non-runnable code isn't run:
20+
if 0:
21+
pass
22+
if __name__ == .__main__.:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,4 @@ ENV/
9191
# IDEA
9292
.idea
9393
.pytest_cache/
94-
.coverage
9594
.DS_Store

tests/__init__.py renamed to pyas2lib/tests/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import unittest
22
import os
3-
import sys
4-
sys.path.insert(0, os.path.abspath('..'))
5-
6-
from pyas2lib import as2, exceptions, utils
73

84

95
class Pyas2TestCase(unittest.TestCase):

0 commit comments

Comments
 (0)