Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[WIP] Debugging test
  • Loading branch information
Leguark committed May 25, 2025
commit 636e1c6a2c4c1592d09b9cd253e701bce0e6a558
8 changes: 4 additions & 4 deletions test/test_modules/test_pile/test_stratigraphic_pile.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@

# Check if PATH_TO_SPREMBERG_STRATIGRAPHY is set if not skip the test
@pytest.mark.skipif(
os.getenv("PATH_TO_SPREMBERG_STRATIGRAPHY") is None,
os.getenv("PATH_TO_SPREMBERG") is None,
reason="PATH_TO_SPREMBERG_STRATIGRAPHY is not set"
)

class TestStratigraphicPile:
@pytest.fixture(autouse=True)
def borehole_set(self):
reader: GenericReaderFilesHelper = GenericReaderFilesHelper(
file_or_buffer=os.getenv("PATH_TO_SPREMBERG_STRATIGRAPHY"),
file_or_buffer=os.getenv("PATH_TO_SPREMBERG") + "Spremberg_stratigraphy.csv",
columns_map={
'hole_id' : 'id',
'depth_from': 'top',
Expand All @@ -36,7 +36,7 @@ def borehole_set(self):

lith: pd.DataFrame = read_lith(reader)
reader: GenericReaderFilesHelper = GenericReaderFilesHelper(
file_or_buffer=os.getenv("PATH_TO_SPREMBERG_SURVEY"),
file_or_buffer=os.getenv("PATH_TO_SPREMBERG") + "Spremberg_survey.csv",
columns_map={
'depth' : 'md',
'dip' : 'dip',
Expand All @@ -49,7 +49,7 @@ def borehole_set(self):
survey.update_survey_with_lith(lith)

reader_collar: GenericReaderFilesHelper = GenericReaderFilesHelper(
file_or_buffer=os.getenv("PATH_TO_SPREMBERG_COLLAR"),
file_or_buffer=os.getenv("PATH_TO_SPREMBERG") + "Spremberg_collar_updated.csv",
header=0,
usecols=[0, 1, 2, 4],
columns_map={
Expand Down