Skip to content

Commit

Permalink
Merge pull request #828 from coronasafe/sainak/feat/test-coverage
Browse files Browse the repository at this point in the history
update coverage-package and config
LGTM
  • Loading branch information
shivankacker authored Jun 7, 2022
2 parents fcbc9cc + 829c4b8 commit f84c962
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 14 deletions.
5 changes: 0 additions & 5 deletions .coveragerc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def populate_countries_travelled(*args):
print("This is no longer needed")
pass
# from care.facility.management.commands.copy_countries_travelled_old_to_countries_travelled import Command
# Command.copy_countries_travelled_old()

Expand Down
4 changes: 1 addition & 3 deletions config/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
# Your stuff...
# ------------------------------------------------------------------------------

INSTALLED_APPS += [ # noqa F405
"test_without_migrations",
]
MIDDLEWARE.remove("care.audit_log.middleware.AuditLogMiddleware")

DATABASES = {"default": env.db("DATABASE_URL", default="postgis:///care-test")}
DATABASES["default"]["ATOMIC_REQUESTS"] = True
Expand Down
10 changes: 5 additions & 5 deletions requirements/local.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ psycopg2-binary==2.8.4 # https://github.com/psycopg/psycopg2
# ------------------------------------------------------------------------------
flake8==3.7.9 # https://github.com/PyCQA/flake8
flake8-isort==2.9.0 # https://github.com/gforcada/flake8-isort
coverage==5.0.4 # https://github.com/nedbat/coveragepy
black==19.10b0 # https://github.com/ambv/black
pylint-django==2.0.14 # https://github.com/PyCQA/pylint-django
pre-commit==2.19.0 # https://github.com/pre-commit/pre-commit
# Django
# ------------------------------------------------------------------------------
factory-boy==2.12.0 # https://github.com/FactoryBoy/factory_boy
django-debug-toolbar==2.2 # https://github.com/jazzband/django-debug-toolbar
django-extensions==2.2.8 # https://github.com/django-extensions/django-extensions
django-coverage-plugin==1.8.0 # https://github.com/nedbat/django_coverage_plugin
# Test
# -------------------------------
django-test-without-migrations==0.6
freezegun==0.3.15
factory-boy==2.12.0 # https://github.com/FactoryBoy/factory_boy
freezegun==0.3.15 # https://github.com/spulec/freezegun
coverage==6.4.1 # https://github.com/nedbat/coveragepy
tblib==1.7.0 # https://github.com/ionelmc/python-tblib

# WatchDog
# -------------------------------
watchdog==0.10.2
Expand Down
17 changes: 17 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
[coverage:run]
branch = True
source = .
parallel = true
concurrency = multiprocessing

[coverage:report]
omit =
*/tests/*
*/asgi.py
*/wsgi.py
manage.py
exclude_lines =
pragma: no cover
raise NotImplementedError
ignore_errors = True

[flake8]
max-line-length = 120
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules
Expand Down

0 comments on commit f84c962

Please sign in to comment.