@@ -85,6 +85,32 @@ def miseqseq_testobj(tmp_path):
8585 return illumina_runs .MiSeqRun (str (run_dir ), config )
8686
8787
88+ @pytest .fixture
89+ def miseqseqi100_testobj (tmp_path ):
90+ config = {
91+ "log" : {"file" : "test.log" },
92+ "transfer_details" : {"user" : "testuser" , "host" : "testhost" },
93+ "statusdb" : {
94+ "username" : "dbuser" ,
95+ "password" : "dbpass" ,
96+ "url:" : "dburl" ,
97+ "database" : "dbname" ,
98+ },
99+ "sequencers" : {
100+ "MiSeqi100" : {
101+ "miarka_destination" : "/data/MiSeqi100" ,
102+ "metadata_for_statusdb" : ["RunInfo.xml" , "RunParameters.xml" ],
103+ "ignore_folders" : ["nosync" ],
104+ "rsync_options" : ["--chmod=Dg+s,g+rw" ],
105+ }
106+ },
107+ }
108+ run_id = "20260128_SH01140_0002_ASC2150561-SC3"
109+ run_dir = tmp_path / run_id
110+ run_dir .mkdir ()
111+ return illumina_runs .MiSeqi100Run (str (run_dir ), config )
112+
113+
88114@pytest .fixture (autouse = True )
89115def mock_statusdbsession (monkeypatch ):
90116 class MockStatusdbSession :
@@ -106,6 +132,7 @@ def update_db_doc(self, doc):
106132 ("novaseqxplus_testobj" , "NovaSeqXPlus" ),
107133 ("nextseq_testobj" , "NextSeq" ),
108134 ("miseqseq_testobj" , "MiSeq" ),
135+ ("miseqseqi100_testobj" , "MiSeqi100" ),
109136 ],
110137)
111138def test_confirm_run_type (run_fixture , expected_run_type , request ):
@@ -124,6 +151,7 @@ def test_confirm_run_type(run_fixture, expected_run_type, request):
124151 "novaseqxplus_testobj" ,
125152 "nextseq_testobj" ,
126153 "miseqseq_testobj" ,
154+ "miseqseqi100_testobj" ,
127155 ],
128156)
129157def test_sequencing_ongoing (run_fixture , request ):
@@ -146,6 +174,8 @@ def test_sequencing_ongoing(run_fixture, request):
146174 ("nextseq_testobj" , True ),
147175 ("miseqseq_testobj" , False ),
148176 ("miseqseq_testobj" , True ),
177+ ("miseqseqi100_testobj" , False ),
178+ ("miseqseqi100_testobj" , True ),
149179 ],
150180)
151181def test_generate_rsync_command (run_fixture , final_sync , request ):
@@ -174,6 +204,10 @@ def test_generate_rsync_command(run_fixture, final_sync, request):
174204 ("miseqseq_testobj" , True , False ),
175205 ("miseqseq_testobj" , False , True ),
176206 ("miseqseq_testobj" , True , True ),
207+ ("miseqseqi100_testobj" , False , False ),
208+ ("miseqseqi100_testobj" , True , False ),
209+ ("miseqseqi100_testobj" , False , True ),
210+ ("miseqseqi100_testobj" , True , True ),
177211 ],
178212)
179213def test_start_transfer (run_fixture , rsync_running , final , request , monkeypatch ):
@@ -219,6 +253,8 @@ def mock_update_statusdb(status, additional_info=None):
219253 ("nextseq_testobj" , False ),
220254 ("miseqseq_testobj" , True ),
221255 ("miseqseq_testobj" , False ),
256+ ("miseqseqi100_testobj" , True ),
257+ ("miseqseqi100_testobj" , False ),
222258 ],
223259)
224260def test_final_sync_successful (run_fixture , sync_successful , request ):
@@ -249,6 +285,10 @@ def test_final_sync_successful(run_fixture, sync_successful, request):
249285 ("miseqseq_testobj" , "sequencing_started" , True ),
250286 ("miseqseq_testobj" , "sequencing_finished" , False ),
251287 ("miseqseq_testobj" , "sequencing_finished" , True ),
288+ ("miseqseqi100_testobj" , "sequencing_started" , False ),
289+ ("miseqseqi100_testobj" , "sequencing_started" , True ),
290+ ("miseqseqi100_testobj" , "sequencing_finished" , False ),
291+ ("miseqseqi100_testobj" , "sequencing_finished" , True ),
252292 ],
253293)
254294def test_has_status (run_fixture , status_to_check , expected_result , request ):
@@ -268,6 +308,12 @@ def get_events(self, run_id):
268308@pytest .mark .parametrize (
269309 "run_fixture, existing_statuses, status_to_update" ,
270310 [
311+ ("novaseqxplus_testobj" , [], "sequencing_started" ),
312+ (
313+ "novaseqxplus_testobj" ,
314+ [{"event_type" : "sequencing_started" }],
315+ "transfer_started" ,
316+ ),
271317 (
272318 "nextseq_testobj" ,
273319 [],
@@ -288,6 +334,16 @@ def get_events(self, run_id):
288334 [{"event_type" : "sequencing_started" }],
289335 "transfer_started" ,
290336 ),
337+ (
338+ "miseqseqi100_testobj" ,
339+ [],
340+ "sequencing_started" ,
341+ ),
342+ (
343+ "miseqseqi100_testobj" ,
344+ [{"event_type" : "sequencing_started" }],
345+ "transfer_started" ,
346+ ),
291347 ],
292348)
293349def test_update_statusdb (
0 commit comments