-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #495 from maykinmedia/feature/1156-add-email-phone…
…number-to-location-cards [#1156] Add email and phonenumber to map and location cards
- Loading branch information
Showing
8 changed files
with
1,277 additions
and
20,381 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,8 @@ def test_get_geojson_feature(self): | |
housenumber="117", | ||
postcode="1015 CJ", | ||
city="Amsterdam", | ||
email="[email protected]", | ||
phonenumber="+31666767676", | ||
geometry=Point(4.8876515, 52.3775941), | ||
) | ||
product = ProductFactory.create(locations=(product_location,)) | ||
|
@@ -84,10 +86,10 @@ def test_get_geojson_feature(self): | |
}, | ||
"properties": { | ||
"name": "Maykin Media", | ||
"street": "Keizersgracht", | ||
"housenumber": "117", | ||
"postcode": "1015 CJ", | ||
"city": "Amsterdam", | ||
"address_line_1": "Keizersgracht 117", | ||
"address_line_2": "1015CJ Amsterdam", | ||
"email": "[email protected]", | ||
"phonenumber": "+31666767676", | ||
}, | ||
} | ||
), | ||
|
@@ -114,14 +116,16 @@ def test_get_serialized_fields(self): | |
housenumber="117", | ||
postcode="1015 CJ", | ||
city="Amsterdam", | ||
email="[email protected]", | ||
phonenumber="+31666767676", | ||
) | ||
self.assertEqual( | ||
{ | ||
"city": "Amsterdam", | ||
"housenumber": "117", | ||
"name": "Maykin Media", | ||
"postcode": "1015 CJ", | ||
"street": "Keizersgracht", | ||
"address_line_1": "Keizersgracht 117", | ||
"address_line_2": "1015CJ Amsterdam", | ||
"email": "[email protected]", | ||
"phonenumber": "+31666767676", | ||
}, | ||
product_location.get_serialized_fields(), | ||
) | ||
|
@@ -133,6 +137,8 @@ def test_queryset_get_geojson_feature_collection(self): | |
housenumber="4", | ||
postcode="7411 KT", | ||
city="Deventer", | ||
email="[email protected]", | ||
phonenumber="+31999767676", | ||
geometry=Point(6.155650, 52.251550), | ||
) | ||
product_location_2 = ProductLocationFactory.create( | ||
|
@@ -141,6 +147,8 @@ def test_queryset_get_geojson_feature_collection(self): | |
housenumber="204", | ||
postcode="1015 KL", | ||
city="Amsterdam", | ||
email="[email protected]", | ||
phonenumber="+31666767676", | ||
geometry=Point(4.883400, 52.380260), | ||
) | ||
product_1 = ProductFactory(locations=(product_location_1,)) | ||
|
@@ -158,10 +166,10 @@ def test_queryset_get_geojson_feature_collection(self): | |
}, | ||
"properties": { | ||
"name": "Gemeente Deventer", | ||
"street": "Grote Kerkhof", | ||
"housenumber": "4", | ||
"postcode": "7411 KT", | ||
"city": "Deventer", | ||
"address_line_1": "Grote Kerkhof 4", | ||
"address_line_2": "7411KT Deventer", | ||
"email": "[email protected]", | ||
"phonenumber": "+31999767676", | ||
}, | ||
}, | ||
{ | ||
|
@@ -172,10 +180,10 @@ def test_queryset_get_geojson_feature_collection(self): | |
}, | ||
"properties": { | ||
"name": "Gemeente Amsterdam", | ||
"street": "Lindengracht", | ||
"housenumber": "204", | ||
"postcode": "1015 KL", | ||
"city": "Amsterdam", | ||
"address_line_1": "Lindengracht 204", | ||
"address_line_2": "1015KL Amsterdam", | ||
"email": "[email protected]", | ||
"phonenumber": "+31666767676", | ||
}, | ||
}, | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters