Skip to content

Commit

Permalink
updating dummy help email address in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanssen2 committed Mar 21, 2024
1 parent b2eb8f0 commit daddfc2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions qiita_pet/test/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,15 +387,15 @@ def test_download(self):
response = self.get('/public_download/?data=raw&study_id=1')
self.assertEqual(response.code, 404)
self.assertEqual(response.reason, 'Study is not public. '
'If this is a mistake contact: qiita.help@gmail.com')
'If this is a mistake contact: foo@bar.com')

# 7 is an uploaded biom, which should now be available but as it's a
# biom, only the prep info file will be retrieved
Artifact(7).visibility = 'public'
response = self.get('/public_download/?data=raw&study_id=1')
self.assertEqual(response.code, 422)
self.assertEqual(response.reason, 'No raw data access. '
'If this is a mistake contact: qiita.help@gmail.com')
'If this is a mistake contact: foo@bar.com')

# check success
response = self.get('/public_download/?data=biom&study_id=1')
Expand Down Expand Up @@ -426,12 +426,12 @@ def test_download(self):
'/public_download/?data=raw&study_id=1&data_type=Genomics')
self.assertEqual(response.code, 422)
self.assertEqual(response.reason, 'Nothing to download. If this is a '
'mistake contact: qiita.help@gmail.com')
'mistake contact: foo@bar.com')
response = self.get(
'/public_download/?data=biom&study_id=1&data_type=Genomics')
self.assertEqual(response.code, 422)
self.assertEqual(response.reason, 'Nothing to download. If this is a '
'mistake contact: qiita.help@gmail.com')
'mistake contact: foo@bar.com')

# check success
Artifact(5).visibility = 'public'
Expand Down Expand Up @@ -521,7 +521,7 @@ def test_download(self):
response = self.get('/public_artifact_download/?artifact_id=3')
self.assertEqual(response.code, 404)
self.assertEqual(response.reason, 'Artifact is not public. If this is '
'a mistake contact: qiita.help@gmail.com')
'a mistake contact: foo@bar.com')

# check success
Artifact(5).visibility = 'public'
Expand Down
6 changes: 3 additions & 3 deletions qiita_ware/test/test_private_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def _set_allocation(memory):
self.assertEqual(job.resource_allocation_info, 'Not valid')
self.assertEqual(job.status, 'error')
self.assertEqual(job.log.msg, 'Obvious incorrect allocation. Please '
'contact qiita.help@gmail.com')
'contact foo@bar.com')

# now let's test something that will cause not a number input_size*N
job = self._create_job('build_analysis_files', {
Expand All @@ -412,7 +412,7 @@ def _set_allocation(memory):
self.assertEqual(job.resource_allocation_info, 'Not valid')
self.assertEqual(job.status, 'error')
self.assertEqual(job.log.msg, 'Obvious incorrect allocation. Please '
'contact qiita.help@gmail.com')
'contact foo@bar.com')

# now let's test something that will return a negative number -samples
job = self._create_job('build_analysis_files', {
Expand All @@ -421,7 +421,7 @@ def _set_allocation(memory):
self.assertEqual(job.resource_allocation_info, 'Not valid')
self.assertEqual(job.status, 'error')
self.assertEqual(job.log.msg, 'Obvious incorrect allocation. Please '
'contact qiita.help@gmail.com')
'contact foo@bar.com')

# now let's test a full build_analysis_files job
job = self._create_job('build_analysis_files', {
Expand Down

0 comments on commit daddfc2

Please sign in to comment.