Skip to content

Commit

Permalink
fix the data in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanqizhen authored Jun 5, 2024
1 parent 9abe76f commit b599c44
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_osmchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ def test_set_sequencenumber(self):
def test_read_changeset_from_xml_file(self, osmchange_file_path):
"Test initializing from an XML object"
osmchange = OSMChange.from_xml_file(osmchange_file_path)
assert len(osmchange.create) == 1004
assert len(osmchange.modify) == 585
assert len(osmchange.delete) == 3800
assert len(osmchange.create) == 831
assert len(osmchange.modify) == 368
assert len(osmchange.delete) == 3552
nodes_created = [o for o in osmchange.create if isinstance(o, Node)]
ways_created = [o for o in osmchange.create if isinstance(o, Way)]
rels_created = [o for o in osmchange.create if isinstance(o, Relation)]
assert len(nodes_created) == 858
assert len(ways_created) == 146
assert len(nodes_created) == 699
assert len(ways_created) == 132
assert len(rels_created) == 0
assert len(nodes_created + ways_created + rels_created) == len(osmchange.create)

0 comments on commit b599c44

Please sign in to comment.