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

release-engineering / kobo / 214
48%
master: 51%

Build:
Build:
LAST BUILD BRANCH: kobo-0.20.2
DEFAULT BRANCH: master
Ran 01 Apr 2020 11:34AM UTC
Jobs 1
Files 109
Run time 11s
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
214

push

travis-ci

querti
Fix Django testcases

Many tests were failing because Django database transaction doesn't
get flushed after a test failure (even marked with xfail). This prevents
the setup of the next test to be conducted properly because to-be-created
data are already present in the database. The root cause is unknown
(perhaps a bug that was fixed in later versions of Django?). It was
fixed by changing the inherited testing class from 'django.test.TestCase'
to 'django.test.TransactionTestCase'. They should be functionally identical,
they only differ in how the Database cleanup gets performed. Additionally,
a '_fixture_teardown()' method was added to the test class's setUp method
to ensure that the database has been flushed before the next test.

Testcase 'test_get_worker_id' was broken by these changes, as the ID
of the created worker is no longer 1. This is most likely caused
by the difference in how the objects get removed from the database.
Testcase was instead changed to check if any viable ID is present.

2929 of 6050 relevant lines covered (48.41%)

0.48 hits per line

Jobs
ID Job ID Ran Files Coverage
6 214.6 (TOXENV=py37-cov-travis) 01 Apr 2020 11:34AM UTC 0
48.41
Travis Job 214.6
Source Files on build 214
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #214
  • 0f1e7731 on github
  • Prev Build on fix_migrations (#212)
  • Next Build on fix_migrations (#216)
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