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

ICRAR / ngas / 488
69%

Build:
DEFAULT BRANCH: master
Ran 12 Jan 2021 04:07AM UTC
Jobs 6
Files 163
Run time 2min
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
488

push

travis-ci-com

Rodrigo Tobar
Generate useful message upon unknown MIME type

As pointed out by #13, issuing an archiving command with an unknown MIME
type currently results on a cryptic, internal error message ("'NoneType'
object has no attribute 'getHostIdList'") rather than a useful one.

This commit avoids the condition that generated the previous error
message, adding the necessary checks to generate a more meaningful error
message instead stating that the MIME type is not konwn to NGAS.
Alongside this change I also slightly simplified a bit of code to avoid
some small repetitions.

A new unit test also ensures the error message received by the user is
actually useful. This is done by checking that the unknown MIME type
sent by the user is somewhere in the error message, hinting that the
issue is being addressed by the message.

13535 of 19604 relevant lines covered (69.04%)

4.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 488.1 (DB=sqlite3) 12 Jan 2021 04:07AM UTC 0
68.71
Travis Job 488.1
2 488.2 (DB=mysql) 12 Jan 2021 04:08AM UTC 0
68.47
Travis Job 488.2
3 488.3 (DB=postgresql) 12 Jan 2021 04:08AM UTC 0
68.48
Travis Job 488.3
5 488.5 12 Jan 2021 04:07AM UTC 0
68.7
Travis Job 488.5
6 488.6 12 Jan 2021 04:07AM UTC 0
68.77
Travis Job 488.6
7 488.7 12 Jan 2021 04:07AM UTC 0
68.85
Travis Job 488.7
Source Files on build 488
  • Tree
  • List 163
  • Changed 16
  • Source Changed 1
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #488
  • 0b3cf49d on github
  • Prev Build on master (#486)
  • Next Build on master (#490)
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