Skip to content

Commit

Permalink
Fix test annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
kjsanger committed Oct 25, 2024
1 parent a5c603c commit 633acf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/ont/test_generate_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
@m.describe("Generate ONT email")
class TestGenerateONTEmail:

@m.context("When an ONT event is serialized and deserialized")
@m.it("Retains the correct values")
def test_serialize_deserialize_event(self):
expt = "experiment1"
slot = 1
Expand All @@ -26,14 +28,15 @@ def test_serialize_deserialize_event(self):
event2 = ContactEmail.from_serializable(
json.loads(json.dumps(event1.to_serializable()))
)

assert event2.experiment_name == expt
assert event2.instrument_slot == slot
assert event2.flowcell_id == flowcell_id
assert event2.path == path
assert event2.event == event_type

@m.context("When an ONT email is generated")
@m.it("Has the correct subject")
@m.it("Has the correct subject and body")
def test_generate_email(self):
expt = "experiment1"
slot = 1
Expand Down

0 comments on commit 633acf1

Please sign in to comment.