Skip to content

Commit

Permalink
Bump dropbox to 8.0.0, add coverage, bump version to 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maxicecilia committed Jul 16, 2017
1 parent ef8d5ea commit 3db554b
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -11,3 +11,6 @@ include/
build/
.Python
local_settings.py
.coverage
coverage.xml

10 changes: 9 additions & 1 deletion README.md
@@ -1,5 +1,5 @@
# django-dropbox
> Version 0.1.2
> Version 0.1.1
# What

Expand Down Expand Up @@ -51,3 +51,11 @@ Tests are written following Django best practices. You can run them all easily u
$ cd django_dropbox_project
$ python manage.py test --settings=settings
```

To check the unit tests coverage you can:
```
$ pip install coverage
$ cd django_dropbox_project
$ coverage run manage.py test --settings=settings
$ coverage report -m
```
7 changes: 4 additions & 3 deletions django_dropbox/__init__.py
@@ -1,6 +1,7 @@
VERSION = (0, 0, 2)
VERSION = (0, 1, 1)


def get_version():
return '%s.%s.%s' % VERSION
return '%s.%s.%s' % VERSION

version = get_version()
version = get_version()
29 changes: 29 additions & 0 deletions django_dropbox_project/.coveragerc
@@ -0,0 +1,29 @@
[run]
branch = True
source = .,../django_dropbox
omit =
*/migrations/*
*/tests/*
*/settings/*
*/wsgi.py
manage.py

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug:
if settings\.DEBUG
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
def __iter__
def __len__
__metaclass__
def __init__
ignore_errors = True
3 changes: 2 additions & 1 deletion requirements.txt
@@ -1 +1,2 @@
dropbox>=7.3.1
dropbox>=8.0.0
requests>=2.18.0

0 comments on commit 3db554b

Please sign in to comment.