File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ def test_get_qiita_version(self):
65
65
self .assertEqual (exp_version , qdb .__version__ )
66
66
67
67
def test_get_release_info (self ):
68
+ # making sure there is a release
69
+ get_qiita_version ()
68
70
# just checking that is not empty cause the MD5 will change on every
69
71
# run
70
72
md5sum , filepath , timestamp = get_release_info ('private' )
Original file line number Diff line number Diff line change @@ -150,10 +150,10 @@ def test_download(self):
150
150
# check success
151
151
response = self .get ('/release/download/1' )
152
152
self .assertEqual (response .code , 200 )
153
- self .assertEqual ( response . body , (
154
- "This installation of Qiita was not equipped with nginx, so it "
155
- "is incapable of serving files. The file you attempted to "
156
- "download is located at raw_data/1_s_G1_L001_sequences.fastq.gz" ) )
153
+ self .assertIn (
154
+ "This installation of Qiita was not equipped with nginx, so it is "
155
+ "incapable of serving files. The file you attempted to download "
156
+ "is located at" , response . body )
157
157
158
158
159
159
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments