Skip to content

Commit d040d04

Browse files
committed
Fixed failing tests
1 parent 3377d79 commit d040d04

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

bbconf/models/bed_models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ class StandardMeta(BaseModel):
110110
"""
111111

112112
species_name: str | None = Field(
113-
default=None,
113+
default="",
114114
description="Name of species. e.g. Homo sapiens.",
115115
alias="organism",
116116
)
117-
species_id: str = ""
118-
genotype: str = Field("", description="Genotype of the sample")
119-
phenotype: str = Field("", description="Phenotype of the sample")
117+
species_id: str | None = ""
118+
genotype: str | None = Field("", description="Genotype of the sample")
119+
phenotype: str | None = Field("", description="Phenotype of the sample")
120120
description: str | None = ""
121121

122122
cell_type: str | None = Field(

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def example_dict():
105105
"promoterprox_frequency": 16,
106106
"promoterprox_percentage": 17,
107107
},
108-
metadata={"sample_name": "sample_name_1"},
108+
metadata={"sample_name": "sample_name_1", "species_name": "species_name", "species_id": "123"},
109109
plots=plots,
110110
files=files,
111111
classification=classification,

tests/test_bedfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def test_bed_update(self, bbagent_obj):
215215
with ContextManagerDBTesting(config=bbagent_obj.config, add_data=True):
216216
bed_file = bbagent_obj.bed.get(BED_TEST_ID, full=True)
217217
# assert bed_file.annotation.model_dump(exclude_defaults=True) == {}
218-
assert bed_file.annotation.cell_line == ""
218+
assert bed_file.annotation.cell_line is None
219219

220220
new_metadata = {
221221
"cell_line": "K562",

0 commit comments

Comments
 (0)