Skip to content

Commit 5abf420

Browse files
committed
Switch lipid workflow test to use postgres
1 parent aaf15b1 commit 5abf420

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_wf_lipidomics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_lipidomics_workflow():
8282
ms1_params.mass_spectrum.noise_min_mz, ms1_params.mass_spectrum.min_picking_mz = 0, 0
8383
ms1_params.mass_spectrum.noise_max_mz, ms1_params.mass_spectrum.max_picking_mz = np.inf, np.inf
8484
ms1_params.ms_peak.legacy_resolving_power = False
85-
ms1_params.molecular_search.url_database = ""
85+
ms1_params.molecular_search.url_database = "postgresql://coremsdb:coremsmolform@postgres:5432/molformula"
8686
ms1_params.molecular_search.usedAtoms = {
8787
'C': (10, 30),
8888
'H': (18, 200),
@@ -238,7 +238,7 @@ def test_lipidomics_workflow():
238238
assert df2.shape == (130, 16)
239239
myLCMSobj2.mass_features[0].mass_spectrum.to_dataframe()
240240
assert myLCMSobj2.mass_features[0].ms1_peak[0].string == "C20 H30 O2"
241-
assert myLCMSobj2.mass_features_ms1_annot_to_df().shape[0] == 130
241+
assert myLCMSobj2.mass_features_ms1_annot_to_df().shape[0] == 257
242242
myLCMSobj2.mass_features[0].plot(return_fig=False)
243243

244244
# Delete the "Blanch_Nat_Lip_C_12_AB_M_17_NEG_25Jan18_Brandi-WCSH5801.corems" directory

0 commit comments

Comments
 (0)