-
Notifications
You must be signed in to change notification settings - Fork 9
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
MVJ-733 Fix areasearch address and district update #854
base: develop
Are you sure you want to change the base?
Conversation
d490511
to
311c717
Compare
Rebased over latest develop changes |
Noticed a possible bug in implementation, will fix |
Unit test would be preferable for the function |
If geometry service had returned a partial result (e.g. only a district) and previous data existed for the missing variable (e.g. only an address), the result would have mistakingly bundled them together.
Ready for review again, @henrinie-nc . Will squash when merging |
assert district == district_from_geometry | ||
|
||
|
||
@pytest.mark.django_db |
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.
Is the mark.django_db needed, does this do something with db?
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.
Looks good! Wondering about some of the test, is the db marker decorator needed (I don't know the answer and would like to)?
Don't overwrite existing address and district information with None when geometry data is not provided.