1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
"""
Shared pytest configuration and helpers for the las_rs test suite.
Provides a ``fixture_path`` helper function and a ``fixture`` pytest fixture
that resolve paths relative to the ``tests/fixtures/`` directory. Tests may
import the helper directly or use the fixture via dependency injection.
"""
# Absolute path to the tests/fixtures directory.
=
"""Return the absolute path to a file inside tests/fixtures/.
Accepts one or more path components that are joined with os.path.join,
so both of the following forms work::
fixture_path("v12", "sample_v12.las")
fixture_path("v12/sample_v12.las")
Parameters
----------
*parts:
One or more path components relative to ``tests/fixtures/``.
Returns
-------
str
Absolute path to the requested fixture file.
"""
return
"""Pytest fixture that exposes the ``fixture_path`` helper.
Usage inside a test::
def test_something(fixture):
path = fixture("v12", "sample_v12.las")
"""
return