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

mmabey / fhirdatetime
57%
main: 63%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: main
Repo Added 19 Apr 2021 04:35PM UTC
Files 2
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

LAST BUILD ON BRANCH 0.1.0b5
branch: 0.1.0b5
CHANGE BRANCH
x
Reset
  • 0.1.0b5
  • 0.1.0-alpha.1
  • 0.1.0-alpha.2
  • 0.1.0b1
  • 0.1.0b2
  • 0.1.0b3
  • 0.1.0b4
  • 0.1.0b6
  • 0.1.0b7
  • 0.1.0b8
  • deleteme
  • dev
  • main

pending completion
46

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

Relevant lines Covered
Build:
Build:
838 RELEVANT LINES 475 COVERED LINES
1.7 HITS PER LINE
Source Files on 0.1.0b5
  • Tree
  • List 2
  • Changed 2
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
46 0.1.0b5 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... push 27 Apr 2021 12:01AM UTC mmabey travis-ci-com pending completion  
44 0.1.0b5 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... push 26 Apr 2021 11:54PM UTC mmabey travis-ci-com pending completion  
See All Builds (50)
  • Repo on GitHub
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