Corey Morris commited on
Commit
6251f5a
1 Parent(s): 9adae3c

added new test for a file that currently can be downloaded

Browse files
Files changed (1) hide show
  1. test_details_data_processing.py +8 -4
test_details_data_processing.py CHANGED
@@ -20,14 +20,18 @@ class TestDetailsDataProcessor(unittest.TestCase):
20
  self.assertTrue(os.path.exists('test.html'))
21
  os.remove('test.html')
22
 
23
-
24
- # there is a file path that results in a 404 error.
25
- # create a test replicate that error
26
- def test_download_file_404(self):
27
  file_path_with_error = 'results/shaohang/Sparse0.5_OPT-1.3/results_2023-07-19T19:10:31.005235.json'
28
  url = self.processor.build_url(file_path_with_error)
29
  DetailsDataProcessor.download_file(url, 'test_file_please_remove')
30
 
 
 
 
 
 
 
31
 
32
  def test_build_url(self):
33
  test_cases = [
 
20
  self.assertTrue(os.path.exists('test.html'))
21
  os.remove('test.html')
22
 
23
+ # queries_harness is in the url
24
+ def test_download_file_queries(self):
 
 
25
  file_path_with_error = 'results/shaohang/Sparse0.5_OPT-1.3/results_2023-07-19T19:10:31.005235.json'
26
  url = self.processor.build_url(file_path_with_error)
27
  DetailsDataProcessor.download_file(url, 'test_file_please_remove')
28
 
29
+ # details harness is in the url
30
+ def test_download_file_details(self):
31
+ file_path = 'results/v2ray/LLaMA-2-Wizard-70B-QLoRA/results_2023-08-18T07:09:43.451689.json'
32
+ url = self.processor.build_url(file_path)
33
+ DetailsDataProcessor.download_file(url, 'test_file_please_remove')
34
+
35
 
36
  def test_build_url(self):
37
  test_cases = [