• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wemake-services / django-test-migrations / 101 / 6
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 10 Mar 2020 08:42AM UTC
Files 7
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Mar 2020 08:38AM UTC coverage: 100.0%. Remained the same
DJANGO_VERSION='Django~=2.1.0'

push

travis-ci-com

web-flow
refactor database reset on test's teardown (#42)

* remove unnecessary Migrator.reset() calls

There is no need to run ``Migrator.reset()`` method in both cases,
because database is already cleaned with ``flush`` management command:

+ in ``MigratorTestCase``, it is subclass of ``TransactionTestCase``
  and doesn't override any method that shadow test's teardown method
+ in ``migrator_factory``, it uses ``transactional_db`` fixture
  which clean database

* use flush management command to reset database after migration test

``flush`` management command is used by Django's
``TransactionTestCase``.
Flush only database tested by ``Migrator`` instance.

27 of 27 branches covered (100.0%)

Branch coverage included in aggregate %.

100 of 100 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 101.6 (DJANGO_VERSION='Django~=2.1.0')
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 92
  • Travis Job 101.6
  • 55a52616 on github
  • Prev Job for DJANGO_VERSION='Django~=2.1.0' on master (#96.2)
  • Next Job for DJANGO_VERSION='Django~=2.1.0' on master (#103.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc