Skip to content

Commit

Permalink
Merge branch 'test_convert_one_job' into 'master'
Browse files Browse the repository at this point in the history
Test: use only one thread for test convert

See merge request Oslandia/py3dtiles!102
  • Loading branch information
autra committed May 16, 2022
2 parents 793e8dc + 8cea602 commit 3878381
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,24 @@ def test_convert_without_srs(tmp_dir):
with raises(SrsInMissingException):
convert(os.path.join(fixtures_dir, 'without_srs.las'),
outfolder=tmp_dir,
srs_out='4978')
srs_out='4978',
jobs=1)
assert not os.path.exists(os.path.join(tmp_dir))

convert(os.path.join(fixtures_dir, 'without_srs.las'),
outfolder=tmp_dir,
srs_in='3949',
srs_out='4978')
srs_out='4978',
jobs=1)
assert os.path.exists(os.path.join(tmp_dir, 'tileset.json'))
assert os.path.exists(os.path.join(tmp_dir, 'r.pnts'))


def test_convert_with_srs(tmp_dir):
convert(os.path.join(fixtures_dir, 'with_srs.las'),
outfolder=tmp_dir,
srs_out='4978')
srs_out='4978',
jobs=1)
assert os.path.exists(os.path.join(tmp_dir, 'tileset.json'))
assert os.path.exists(os.path.join(tmp_dir, 'r.pnts'))

Expand All @@ -61,6 +64,7 @@ def test_convert_simple_xyz(tmp_dir):
convert(os.path.join(fixtures_dir, 'simple.xyz'),
outfolder=tmp_dir,
srs_in='3857',
srs_out='4978')
srs_out='4978',
jobs=1)
assert os.path.exists(os.path.join(tmp_dir, 'tileset.json'))
assert os.path.exists(os.path.join(tmp_dir, 'r.pnts'))

0 comments on commit 3878381

Please sign in to comment.