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

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

Build:
DEFAULT BRANCH: master
Ran 10 Mar 2020 08:43AM 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~=1.11.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.

32 of 32 branches covered (100.0%)

Branch coverage included in aggregate %.

101 of 101 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 101.9 (DJANGO_VERSION='Django~=1.11.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.9
  • 55a52616 on github
  • Prev Job for DJANGO_VERSION='Django~=1.11.0' on master (#96.1)
  • Next Job for DJANGO_VERSION='Django~=1.11.0' on master (#103.5)
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

© 2025 Coveralls, Inc