[Tile-serving] [openstreetmap/osm2pgsql] Add support for osm2pgsql_properties table to osm2pgsql-replication (PR #2029)
Sarah Hoffmann
notifications at github.com
Thu Aug 10 20:18:20 UTC 2023
@lonvia commented on this pull request.
> +
+class ReplicationServerMock:
+
+ def __init__(self):
+ self.expected_base_url = None
+ self.state_infos = []
+
+
+ def __call__(self, base_url):
+ assert self.expected_base_url is not None and base_url == self.expected_base_url,\
+ f"Wrong replication service called. Expected '{self.expected_base_url}', got '{base_url}'"
+ return self
+
+
+ def get_state_info(self, seq=None, retries=2):
+ assert self.state_infos, 'Replication mock not propoerly set up'
Fixed.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/2029#discussion_r1290636865
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/2029/review/1572664768 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230810/44418c6d/attachment.htm>
More information about the Tile-serving
mailing list