Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions sdata/experiments/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class TestProgram(Data):
"""A sdata Testprogram

"""
# Trotz "Test"-Präfix keine pytest-Testklasse (gilt via Vererbung auch für
# TestSeries/Test) -> unterdrückt PytestCollectionWarning.
__test__ = False

ATTRIBUTES = [
['material_name', '', 'str', '-', 'Der Name des Materials.', '', False],
['material_norm_name', '', 'str', '-', 'Der normative Name des Materials.', '', False],
Expand Down
3 changes: 2 additions & 1 deletion tests/iolib/test_json1sqlitestore_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def test_find_by_variants(store):
assert len(store.find_by("_sdata_class", "C", limit=1, offset=0)) == 1
# nicht-generierte Spalte -> Warnung + json_extract-Pfad
store.insert(_rec(custom="abc"))
assert len(store.find_by("custom", "abc")) == 1
with pytest.warns(UserWarning, match="not optimized"):
assert len(store.find_by("custom", "abc")) == 1


def test_get_index_df(store):
Expand Down