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

mmabey / fhirdatetime / 45
63%

Build:
DEFAULT BRANCH: main
Ran 27 Apr 2021 12:00AM UTC
Jobs 3
Files 2
Run time 22s
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
45

push

travis-ci-com

mmabey
Too many problems with private properties

When I attempted to copy over portions of the datetime.datetime class
piecemeal, I ultimately had the problem that there were too many methods
that accessed the private attributes of the original datetime class. For
reasons touched on in the commit message for d7036c1, those private
attributes are critical and not accessible to inheriting types.

So, instead of having FhirDateTime inherit directly from datetime, I'm
now using multiple inheritance (hey, it was the best solution that still
allowed for `isinstance(fhir_date_time, datetime.datetime)` to still
return `True`), where a customized version of datetime is the primary
parent class. The only customizations done are to include all methods
from the std lib's datetime and date classes and put them in one place,
plus added an `__init__()` function that blindly stores the private
attributes' values (meaning without any validation). Plus some
formatting from black, haha.

475 of 838 relevant lines covered (56.68%)

1.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45.1 (TEST_PYPI_PW=[secure] PYPI_PW=[secure]) 27 Apr 2021 12:00AM UTC 0
56.68
Travis Job 45.1
2 45.2 (TEST_PYPI_PW=[secure] PYPI_PW=[secure]) 27 Apr 2021 12:00AM UTC 0
57.54
Travis Job 45.2
3 45.3 (TEST_PYPI_PW=[secure] PYPI_PW=[secure]) 27 Apr 2021 12:00AM UTC 0
57.54
Travis Job 45.3
Source Files on build 45
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #45
  • 8a1a72aa on github
  • Prev Build on main (#43)
  • Next Build on main (#50)
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