Beispiel #1
0
 def test_retrieve_assessment_item_files_exist(self):
     with vcr.use_cassette(
             "tests/fixtures/cassettes/kalite/assessment_item_data.json.yml",
             record_mode="all"):
         data, paths = retrieve_assessment_item_data(self.assessment_item)
     for path in paths:
         assert isinstance(path, str), "Path is not of type str"
         assert os.path.exists(path), "Downloaded file does not exist"
Beispiel #2
0
 def test_retrieve_assessment_item_return_list(self):
     with vcr.use_cassette(
             "tests/fixtures/cassettes/kalite/assessment_item_data.json.yml",
             record_mode="all"):
         data, paths = retrieve_assessment_item_data(self.assessment_item)
     assert isinstance(paths, list), "Paths are not returned as a list"
Beispiel #3
0
 def test_retrieve_assessment_item_return_dict(self):
     with vcr.use_cassette(
             "tests/fixtures/cassettes/kalite/assessment_item_data.json.yml",
             record_mode="all"):
         data, paths = retrieve_assessment_item_data(self.assessment_item)
     assert isinstance(data, dict), "Item data is not of kind dict"
 def test_retrieve_assessment_item_files_exist(self):
     with vcr.use_cassette("tests/fixtures/cassettes/kalite/assessment_item_data.json.yml", record_mode="all"):
         data, paths = retrieve_assessment_item_data(self.assessment_item)
     for path in paths:
         assert isinstance(path, str), "Path is not of type str"
         assert os.path.exists(path), "Downloaded file does not exist"
 def test_retrieve_assessment_item_return_list(self):
     with vcr.use_cassette("tests/fixtures/cassettes/kalite/assessment_item_data.json.yml", record_mode="all"):
         data, paths = retrieve_assessment_item_data(self.assessment_item)
     assert isinstance(paths, list), "Paths are not returned as a list"
 def test_retrieve_assessment_item_return_dict(self):
     with vcr.use_cassette("tests/fixtures/cassettes/kalite/assessment_item_data.json.yml", record_mode="all"):
         data, paths = retrieve_assessment_item_data(self.assessment_item)
     assert isinstance(data, dict), "Item data is not of kind dict"