-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BDRSPS-762 Create initial version of incidental template v3 #185
Conversation
424edb0
to
56209da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want the template to be hidden so it can be merged and work begin on the mapping changes, without it being available through BDR PartA. See comment on mapper.py
.
|
||
|
||
# Register Mapper | ||
base.mapper.ABISMapper.register_mapper(IncidentalOccurrenceMapper) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can leave this commented out for now or behind a feature flag somehow? Maybe a conditional of when version >= 5.0.0(-rcx) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joecrowleygaia I'll put it behind a check so its only registered for unit tests?
This is entirely copied from v2, with just the version number changed to v3.0.0
This means it can be unit tested while we develop it, but not available in the app
56209da
to
8148d5c
Compare
if os.getenv("PYTEST_VERSION"): | ||
# incidental v3 is still in development, only register for unit tests. | ||
base.mapper.ABISMapper.register_mapper(IncidentalOccurrenceMapper) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This is entirely copied from v2, with just the version number changed to v3.0.0