Skip to content

Commit 38a9e7e

Browse files
committed
Prepare for travis
1 parent bd0bb8c commit 38a9e7e

File tree

3 files changed

+11
-52
lines changed

3 files changed

+11
-52
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: python
2+
python:
3+
- "3.4"
4+
script: coverage run -m unittest discover tests
5+
before_install:
6+
- pip install codecov
7+
- pip install coverage
8+
after_success:
9+
- codecov

tests/test_language.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ def generate_test(name, cases):
55
def test(self):
66
for input, exp in cases.items():
77
if isinstance(exp, list):
8-
exp = {'type': 'module', 'dependencies': [], 'constants': [], 'definitions': [], 'main': exp}
8+
exp = {'type': 'module', 'dependencies': [], 'custom_exceptions': [], 'constants': [], 'definitions': [], 'main': exp}
99
else:
10-
exp = {'type': 'module', 'dependencies': [], 'constants': exp.get('constants', []), 'definitions': exp.get('definitions', []), 'main': exp['main']}
10+
exp = {'type': 'module', 'dependencies': [], 'custom_exceptions': [], 'constants': exp.get('constants', []), 'definitions': exp.get('definitions', []), 'main': exp['main']}
1111

1212
self.assertEqual(self.translate(input), exp)
1313
return test

type_inference.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)