Skip to content

Commit

Permalink
Update test_filehandler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
markusritschel committed Jul 9, 2024
1 parent 059c04e commit ab36715
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_filehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
import pytest
from oceanpack.app.models.filehandler import AnalyzerFileHandler

@pytest.fixture()
def analyzer_file():
return '/home/markusritschel/PycharmProjects/EUREC4A/data/raw_data/NetDI/200117_001.log'

class TestAnalyzerFileHandler:
def test_read_file(self, analyzer_file):
def test_read_file(self):
analyzer_file = 'tests/example_op.log'
file_handler = AnalyzerFileHandler()
result = file_handler.read_file(analyzer_file)
assert isinstance(result, tuple)
assert isinstance(result[0], pd.DataFrame)

0 comments on commit ab36715

Please sign in to comment.