Skip to content

Commit

Permalink
chore(coverage)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Aug 2, 2019
1 parent 48d007f commit 314c360
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[report]
exclude_lines =
pragma: no cover
raise NotImplementedError
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
# not used anymore:
swagger_client
swagger-codegen-cli-2.3.1.jar

# Translations
*.mo
Expand Down Expand Up @@ -65,6 +67,3 @@ docs/_build/
local_settings.py
settings.yaml
*.sq3

# swagger
swagger-codegen-cli-2.3.1.jar
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jdk:
- oraclejdk8

install:
- "wget https://oss.sonatype.org/content/repositories/releases/io/swagger/swagger-codegen-cli/2.3.1/swagger-codegen-cli-2.3.1.jar"
- "java -jar swagger-codegen-cli-2.3.1.jar generate -i openapis/swagger.yaml -l python -o swagger_client"
- "cd swagger_client; python setup.py install; cd .."
- "python setup.py install --force"
- "pip install -r test-requirements.txt"

Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,17 +320,12 @@ There is specific information about some configuration options in the [distribut

## Testing
- Follow [installation](#installation)
- Install [swagger-codegen](https://swagger.io/swagger-codegen/)
- Run:
```
pip install -r test-requirements.txt
swagger-codegen generate -i openapis/swagger.yaml -l python -o swagger_client
cd swagger_client; python setup.py develop; cd -
py.test -v tests/
```

> NOTE: If you experience issues, you can check the `.travis.yml` file in this repo to see how swagger codegen (and which version) is being used for automated unit testing in Travis CI.
## Testing with Docker

Doesn't work with all the DB tests yet, but you can adjust to run specific tests as necessary.
Expand Down

0 comments on commit 314c360

Please sign in to comment.