academic_observatory_workflows.openalex_telescope.tests.test_openalex_telescope
Module Contents
Classes
Tests for the OpenAlex telescope |
Functions
|
|
|
Create an OpenAlex dataset based on data from the fixtures folder, uploading it to AWS S3 storage. |
|
Attributes
- academic_observatory_workflows.openalex_telescope.tests.test_openalex_telescope.FIXTURES_FOLDER[source]
- class academic_observatory_workflows.openalex_telescope.tests.test_openalex_telescope.TestOpenAlexUtils(*args, **kwargs)[source]
Bases:
observatory.platform.observatory_environment.ObservatoryTestCase
- academic_observatory_workflows.openalex_telescope.tests.test_openalex_telescope.upload_folder_to_s3(bucket_name: str, folder_path: str, s3_prefix=None)[source]
- academic_observatory_workflows.openalex_telescope.tests.test_openalex_telescope.create_openalex_dataset(input_path: pathlib.Path, bucket_name: str) Dict [source]
Create an OpenAlex dataset based on data from the fixtures folder, uploading it to AWS S3 storage.
- Parameters:
input_path – the input path of the dataset in the fixtures folder.
bucket_name – the AWS S3 bucket name.
- Returns:
a manifest index, with entity name as key and manfiest as value, to use for testing.