Skip to content

Commit cb5db90

Browse files
committed
fix typos
1 parent 1dcdf3f commit cb5db90

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

tests/bdd/command-line/replication.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Feature: Tests for the osm2pgsql-replication script with property table
3535
| replication_timestamp | 2013-08-03T19:00:02Z |
3636

3737

38-
Scenario: Replication cannot be initialsed when date information is missing
38+
Scenario: Replication cannot be initialised when date information is missing
3939
Given the OSM data
4040
"""
4141
n34 Tamenity=restaurant x77 y45.3
@@ -78,7 +78,7 @@ Feature: Tests for the osm2pgsql-replication script with property table
7878
| replication_timestamp | 2013-08-03T19:00:02Z |
7979

8080

81-
Scenario: Replication initialiasion will fail for a database in a different schema
81+
Scenario: Replication initialisation will fail for a database in a different schema
8282
Given the database schema foobar
8383
Given the input file 'liechtenstein-2013-08-03.osm.pbf'
8484
And the replication service at http://example.com/europe/liechtenstein-updates

tests/bdd/environment.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def before_all(context):
9696
# Set up replication script.
9797
replicationfile = str(Path(context.config.userdata['REPLICATION_SCRIPT']).resolve())
9898
spec = importlib.util.spec_from_loader('osm2pgsql_replication',
99-
SourceFileLoader( 'osm2pgsql_replication',replicationfile))
99+
SourceFileLoader('osm2pgsql_replication',
100+
replicationfile))
100101
assert spec, f"File not found: {replicationfile}"
101102
context.osm2pgsql_replication = importlib.util.module_from_spec(spec)
102103
spec.loader.exec_module(context.osm2pgsql_replication)

tests/bdd/steps/replication_server_mock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __call__(self, base_url):
2020

2121

2222
def get_state_info(self, seq=None, retries=2):
23-
assert self.state_infos, 'Replication mock not propoerly set up'
23+
assert self.state_infos, 'Replication mock not properly set up'
2424
if seq is None:
2525
return self.state_infos[-1]
2626

@@ -31,7 +31,7 @@ def get_state_info(self, seq=None, retries=2):
3131
assert False, f"No sequence information for sequence ID {seq}."
3232

3333
def timestamp_to_sequence(self, timestamp, balanced_search=False):
34-
assert self.state_infos, 'Replication mock not propoerly set up'
34+
assert self.state_infos, 'Replication mock not properly set up'
3535

3636
if timestamp < self.state_infos[0].timestamp:
3737
return self.state_infos[0].sequence

0 commit comments

Comments
 (0)