Skip to content

Commit f792c73

Browse files
committed
Fix tests again
1 parent 2839a08 commit f792c73

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

dataflow_transfer/tests/test_run_classes.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def get_regex_pattern(self, run_family, run_type):
145145
if run_type == "NovaSeqXPlus":
146146
return r"^(?P<date>\d{8})_(?P<instrument>[A-Z0-9]+)_\d{4}_(?P<position>(A|B))(?P<flowcell_id>[A-Z0-9]+)$"
147147
elif run_type == "NextSeq":
148-
return r"^(?P<date>\d{6})_(?P<instrument>[A-Z0-9]+)_\d{3}_(?P<position>(A|B))(?P<flowcell_id>[A-Z0-9]+)$"
148+
return r"^(?P<date>\d{6})_(?P<instrument>[A-Z0-9]+)_\d{3}_(?P<flowcell_id>[A-Z0-9]+)$"
149149
elif run_type == "MiSeq":
150150
return r"^(?P<date>\d{6})_(?P<instrument>[A-Z0-9]+)_\d{4}_(?P<flowcell_id>[A-Z0-9\-]+)$"
151151
elif run_type == "MiSeqi100":
@@ -478,8 +478,12 @@ def test_update_statusdb(
478478
class MockDB:
479479
def __init__(self):
480480
self.updated_doc = None
481+
self.db_name = "mock_db"
481482

482-
def get_db_doc(self, ddoc, view, run_id):
483+
def get_doc_id(self, ddoc, view, run_id):
484+
return "mock_doc_id"
485+
486+
def get_document(self, db, doc_id):
483487
return {"events": existing_statuses, "files": {}}
484488

485489
def update_db_doc(self, doc):

0 commit comments

Comments
 (0)