Spaces:
Sleeping
Sleeping
Download test/test_data_service.py from iscg34/finalproject: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/spaces/iscg34/finalproject/resolve/refs%2Fpr%2F2/test/test_data_service.py
- Command line
-
hf download hf://spaces/iscg34/finalproject@refs/pr/2/test/test_data_service.py
-
curl -L -o test_data_service.py https://huggingface.co/spaces/iscg34/finalproject/resolve/refs%2Fpr%2F2/test/test_data_service.py
446 Bytes
| import unittest | |
| from data_service import DataService | |
| class TestDataService(unittest.TestCase): | |
| def test_get_patients(self): | |
| # TODO: I'm just stubbing out what I think the API could look like. | |
| #data_service = DataService().to("").withCreds("").build() | |
| with DataService().build() as data_service: | |
| patients = data_service.get_patients() | |
| self.assertTrue(isinstance(patients, list)) | |
| self.assertTrue(len(patients) > 0) |