Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

Commit 64f00d3

Browse files
author
MoiTux
committed
Merge pull request #2 from grigouze/improve_testing_stuff
Some improvments for testing stuff
2 parents b9b59f1 + 31e939e commit 64f00d3

File tree

16 files changed

+32
-10
lines changed

16 files changed

+32
-10
lines changed

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[report]
2+
omit = */migrations/*

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
install:
5+
- python setup.py develop
6+
- pip install pytest
7+
- pip install pytest-django
8+
- pip install pytest-coverage
9+
- pip install coveralls
10+
script:
11+
- py.test --cov baobab
12+
after_success:
13+
- coveralls

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ Submit unit tests for your changes. Run the full test suite on your branch befor
271271

272272
Update the documentation when creating or modifying features.
273273

274+
## Code status
275+
276+
[![Build Status](https://travis-ci.org/Gandi/baobab.svg?branch=master)](https://travis-ci.org/Gandi/baobab)
277+
[![Coverage Status](https://coveralls.io/repos/Gandi/baobab/badge.svg?branch=master)](https://coveralls.io/r/Gandi/baobab?branch=master)
278+
274279
## LICENSE
275280

276281
Please see the `LICENSE` file.

baobab/apirest/tests/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
add the tests classes here to make them visible to django
66
"""
77

8-
from .route import TestRoute
9-
from .status import TestStatus
10-
from .services import TestServices
11-
from .events import TestEvents
12-
from .utc_date import TestUTCDate
13-
from .schema import TestSchema
8+
from .test_route import TestRoute
9+
from .test_status import TestStatus
10+
from .test_services import TestServices
11+
from .test_events import TestEvents
12+
from .test_utc_date import TestUTCDate
13+
from .test_schema import TestSchema
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from tastypie.test import ResourceTestCase
99

1010
from baobab.apirest.urls import ApiUrls
11-
from baobab.apirest.tests.schema import TestSchema
11+
from baobab.apirest.tests.test_schema import TestSchema
1212

1313

1414
class TestRoute(ResourceTestCase):

0 commit comments

Comments
 (0)