@@ -51,11 +51,11 @@ def test_generate_html_summary_no_demux(self):
51
51
files = self .qclient .get (
52
52
'/qiita_db/artifacts/%s/' % artifact_id )['files' ]
53
53
54
- bcds_fp = files ['raw_barcodes' ][0 ]
54
+ bcds_fp = files ['raw_barcodes' ][0 ][ 'filepath' ]
55
55
self ._clean_up_files .append (bcds_fp )
56
56
with GzipFile (bcds_fp , mode = 'w' , mtime = 1 ) as fh :
57
57
fh .write (BARCODES .encode ())
58
- fwd_fp = files ['raw_forward_seqs' ][0 ]
58
+ fwd_fp = files ['raw_forward_seqs' ][0 ][ 'filepath' ]
59
59
self ._clean_up_files .append (fwd_fp )
60
60
with GzipFile (fwd_fp , mode = 'w' , mtime = 1 ) as fh :
61
61
fh .write (READS .encode ())
@@ -71,7 +71,7 @@ def test_generate_html_summary_no_demux(self):
71
71
72
72
# asserting content of html
73
73
res = self .qclient .get ("/qiita_db/artifacts/%s/" % artifact_id )
74
- html_fp = res ['files' ]['html_summary' ][0 ]
74
+ html_fp = res ['files' ]['html_summary' ][0 ][ 'filepath' ]
75
75
self ._clean_up_files .append (html_fp )
76
76
with open (html_fp ) as html_f :
77
77
html = html_f .read ()
@@ -92,7 +92,7 @@ def test_generate_html_summary_demux(self):
92
92
# files fo not exist create them
93
93
files = self .qclient .get (
94
94
'/qiita_db/artifacts/%s/' % artifact_id )['files' ]
95
- demux_fp = files ['preprocessed_demux' ][0 ]
95
+ demux_fp = files ['preprocessed_demux' ][0 ][ 'filepath' ]
96
96
copyfile (join (dirname (__file__ ), 'test_data' , '101_seqs.demux' ),
97
97
demux_fp )
98
98
self ._clean_up_files .append (demux_fp )
@@ -107,7 +107,7 @@ def test_generate_html_summary_demux(self):
107
107
108
108
# asserting content of html
109
109
res = self .qclient .get ("/qiita_db/artifacts/%s/" % artifact_id )
110
- html_fp = res ['files' ]['html_summary' ][0 ]
110
+ html_fp = res ['files' ]['html_summary' ][0 ][ 'filepath' ]
111
111
self ._clean_up_files .append (html_fp )
112
112
113
113
with open (html_fp ) as html_f :
0 commit comments