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

MITLibraries / transmogrifier / 7006796478
99%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2023 03:00PM UTC
Jobs 1
Files 16
Run time 3s
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

27 Nov 2023 02:59PM UTC coverage: 98.893% (-0.8%) from 99.733%
7006796478

push

github

web-flow
Gdt 82 transformer class refactor (#106)

* Rename Transformer > XmlTransformer

* Rename Transformer > XmlTransformer to prepare for new base class
* Rename xml arg to source_record for XmlTransformer methods

* Create Transformer base class

Why these changes are being introduced:
* A format-agnostic Transformer base class is needed for deriving both XmlTransformer and JsonTransformer format classes

How this addresses that need:
* Create a Transformer base class
* Add JSON type for validation
* Refactor XmlTransformer to derive from Transformer class
* Rename arg xml > source_record and update docstrings

Side effects of this change:
* None

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/GDT-82

* Rename input_records > source_records across repo

* Add parse_source_records method

Why these changes are being introduced:
* parse_xml_records is a function in the helpers module that will be replaced by a method in the Transformer base class

How this addresses that need:
* Add parse_source_records method to Transformer base class as an abstractmethod
* Add parse_source_records to XmlTransformer class and corresponding unit test

Side effects of this change:
* None

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/GDT-82

* Remove parse_xml_records function

* Remove parse_xml_records function from helpers module and corresponding unit test
* Replace all calls of that function with the appropriate class method

* Update dependencies

* Shift get_transformer to Transformer method

* Shift get_transformer from config module to Transformer class staticmethod along with corresponding unit tests
* Update CLI to call new method

* Updates based on discussion in PR #106

* Remove instance from transformer_instance variable name
* Update write_timdex_records_to_json type hinting
* Update get_transformer type hinting
* Update docstrings

* Add load and write_timdex_record... (continued)

131 of 141 new or added lines in 9 files covered. (92.91%)

1161 of 1174 relevant lines covered (98.89%)

0.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7006796478.1 27 Nov 2023 03:00PM UTC 0
98.89
GitHub Action Run
Source Files on build 7006796478
Detailed source file information is not available for this build.
  • Back to Repo
  • ee4da864 on github
  • Prev Build on refs/tags/v.1.3.4 (#6003319416)
  • Next Build on main (#7115514238)
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