Skip to content

Commit

Permalink
deactivate test that depend on a OEP table for now. Setup a better te…
Browse files Browse the repository at this point in the history
…st structure later
  • Loading branch information
jh-RLI committed Oct 31, 2024
1 parent e08ca8a commit bf2f4d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tests/test_base.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""Tests for OMIs `base` package."""

import pytest

from omi import base, validation


def test_metadata_from_oep():
def deactivate_test_metadata_from_oep():
"""Test metadata from OEP."""
metadata = base.get_metadata_from_oep_table("ind_steel_pellet_1")
validation.validate_metadata(metadata)
Expand All @@ -19,7 +20,7 @@ def test_metadata_from_oep_non_existing_table():
base.get_metadata_from_oep_table("non_existing_table")


def test_metadata_from_oep_empty():
def deactivate_test_metadata_from_oep_empty():
"""Test error for empty metadata."""
with pytest.raises(
base.MetadataError,
Expand Down
5 changes: 3 additions & 2 deletions tests/test_data_validation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for validating data via OMI."""

import json
import pathlib

Expand All @@ -9,7 +10,7 @@
from omi import validation


def test_data_validation_against_oep():
def deactivate_test_data_validation_against_oep():
"""Test data validation with example file against OEP table."""
valid_data_file = pathlib.Path(__file__).parent / "test_data" / "validation" / "hackathon_lignite_hh_valid.csv"
valid_data = pd.read_csv(valid_data_file, delimiter=";")
Expand All @@ -26,7 +27,7 @@ def test_data_validation_against_metadata():
validation.validate_data(valid_data, metadata=metadata)


def test_data_validation_report():
def deactivate_test_data_validation_report():
"""Test data validation with example file."""
valid_data_file = pathlib.Path(__file__).parent / "test_data" / "validation" / "hackathon_lignite_hh_valid.csv"
valid_data = pd.read_csv(valid_data_file, delimiter=";")
Expand Down

0 comments on commit bf2f4d5

Please sign in to comment.