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

wemake-services / django-test-migrations / 101
100%

Build:
DEFAULT BRANCH: master
Ran 10 Mar 2020 08:40AM UTC
Jobs 12
Files 7
Run time 4min
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

pending completion
101

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.

22 of 22 branches covered (100.0%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

100 of 100 relevant lines covered (100.0%)

12.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 101.1 (DJANGO_VERSION='Django~=1.11.0') 10 Mar 2020 08:40AM UTC 0
100.0
Travis Job 101.1
2 101.2 (DJANGO_VERSION='Django~=2.1.0') 10 Mar 2020 08:40AM UTC 0
100.0
Travis Job 101.2
3 101.3 (DJANGO_VERSION='Django~=2.2.0') 10 Mar 2020 08:40AM UTC 0
100.0
Travis Job 101.3
4 101.4 (DJANGO_VERSION='Django~=3.0.0') 10 Mar 2020 08:41AM UTC 0
100.0
Travis Job 101.4
5 101.5 (DJANGO_VERSION='Django~=1.11.0') 10 Mar 2020 08:40AM UTC 0
100.0
Travis Job 101.5
6 101.6 (DJANGO_VERSION='Django~=2.1.0') 10 Mar 2020 08:42AM UTC 0
100.0
Travis Job 101.6
7 101.7 (DJANGO_VERSION='Django~=2.2.0') 10 Mar 2020 08:43AM UTC 0
100.0
Travis Job 101.7
8 101.8 (DJANGO_VERSION='Django~=3.0.0') 10 Mar 2020 08:43AM UTC 0
100.0
Travis Job 101.8
9 101.9 (DJANGO_VERSION='Django~=1.11.0') 10 Mar 2020 08:43AM UTC 0
100.0
Travis Job 101.9
10 101.10 (DJANGO_VERSION='Django~=2.1.0') 10 Mar 2020 08:43AM UTC 0
100.0
Travis Job 101.10
11 101.11 (DJANGO_VERSION='Django~=2.2.0') 10 Mar 2020 08:45AM UTC 0
100.0
Travis Job 101.11
12 101.12 (DJANGO_VERSION='Django~=3.0.0') 10 Mar 2020 08:45AM UTC 0
100.0
Travis Job 101.12
Source Files on build 101
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #101
  • 55a52616 on github
  • Prev Build on master (#96)
  • Next Build on master (#103)
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