Skip to content

Commit

Permalink
test: add test for dip rate download
Browse files Browse the repository at this point in the history
  • Loading branch information
alubbock committed Sep 12, 2024
1 parent 21010ed commit a75722d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions thunorweb/tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ def test_download_hdf_access(self):
self.check_view_access_status(
reverse('thunorweb:download_dataset_hdf5', args=[self.d.id]))

def test_download_dip_rates(self):
self.client.force_login(self.user)
resp = self.client.get(reverse('thunorweb:download_dip_rates',
args=[self.d.id]))

self.assertEqual(resp.status_code, HTTP_OK)
self.assertEqual(resp['Content-Type'], 'text/tab-separated-values')

def test_download_dip_params_tsv(self):
self.client.force_login(self.user)
resp = self.client.get(reverse('thunorweb:download_fit_params',
Expand Down

0 comments on commit a75722d

Please sign in to comment.