Skip to content

Commit

Permalink
FIX tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eboileau committed Jul 15, 2024
1 parent 066fcb8 commit 4c10291
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion server/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,21 @@ def setup():
name="N6-methyladenosine",
short_name="m6A",
moiety="nucleoside",
reference_id=96,
),
Modomics(
id="2000000005C",
name="5-methylcytidine",
short_name="m5C",
moiety="nucleoside",
reference_id=18,
),
Modomics(
id="2000000009U", name="pseudouridine", short_name="Y", moiety="nucleoside"
id="2000000009U",
name="pseudouridine",
short_name="Y",
moiety="nucleoside",
reference_id=118,
),
]
add.extend(modomics)
Expand Down
4 changes: 3 additions & 1 deletion server/tests/fixtures/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
def dataset(Session, setup): # noqa
stamp = datetime.now(timezone.utc).replace(microsecond=0)
organism = Organism(id=1, taxa_id=9606, cto="Cell Type 1")
modomics = Modomics(id="m1", name="Mod1", short_name="Mod1", moiety="moiety")
modomics = Modomics(
id="m1", name="Mod1", short_name="Mod1", moiety="moiety", reference_id=1
)
modification = Modification(id=1, modomics_id=modomics.id, rna="Bla")
method = DetectionMethod(id="m1", cls="c1", meth="Method m1")
technology = DetectionTechnology(id=1, method_id=method.id, tech="Very Cool Tech")
Expand Down

0 comments on commit 4c10291

Please sign in to comment.