예제 #1
0
def test_focus_vision_metadata():

    fp = get_surveys_dir('focus_vision') / 'Sample Raw Data (Text).xlsx'
    metadata = FocusVisionMetadata(fp)
    info = metadata.header_info()
    uniques = metadata.unique_answers()
    return info, uniques
예제 #2
0
def test_alpha_hq_metadata():

    fp = get_surveys_dir('alpha_hq') / 'test_69_data.csv'
    metadata = AlphaHQMetadata(fp)
    info = metadata.header_info()
    uniques = metadata.unique_answers()
    return info, uniques
예제 #3
0
def test_usability_hub_metadata():

    fp = get_surveys_dir('usability_hub') / f'test Demo ' \
                                            f'Survey-results_cleaned.csv'
    metadata = UsabilityHubMetadata(fp)
    info = metadata.header_info()
    uniques = metadata.unique_answers()
    return info, uniques
예제 #4
0
def test_qualtrics_metadata():

    fp = get_surveys_dir('qualtrics') / f'test_Kit_ENGLISH_AUSTRALIA_May+5,' \
                                        f'+2019_18.36.csv'
    metadata = QualtricsMetadata(fp)
    info = metadata.header_info()
    uniques = metadata.unique_answers()
    return info, uniques
예제 #5
0
def create_survey() -> Survey:

    survey_path = get_surveys_dir('pollfish') / \
                  f'Pollfish_Example_Survey_253227526_en.xls'
    creator = PollfishCreator(survey_name='Pollfish Example Survey',
                              survey_data_fn=survey_path,
                              metadata_fn=get_metadata_path('pollfish'))
    survey = creator.run()
    return survey
예제 #6
0
    def setUp(self) -> None:

        survey_path = get_surveys_dir(
            'focus_vision') / 'Sample Raw Data (Text).xlsx'
        creator = FocusVisionCreator(
            survey_name='Sample FocusVision Survey',
            survey_data_fn=survey_path,
            metadata_fn=get_metadata_path('focus_vision'),
        )
        self.survey = creator.run()
예제 #7
0
    def setUp(self) -> None:

        survey_path = (get_surveys_dir('qualtrics') /
                       'Deliveroo_Kit_ENGLISH_AUSTRALIA_May+5,+2019_18.36.csv')
        creator = QualtricsCreator(
            survey_name='Sample Qualtrics Survey',
            survey_data_fn=survey_path,
            metadata_fn=get_metadata_path('qualtrics'),
        )
        self.survey = creator.run()
예제 #8
0
def create_survey(survey_number: int) -> Survey:

    survey_path = get_surveys_dir('alpha_hq') / f'test_{survey_number}_data.csv'
    creator = AlphaHQCreator(
        survey_name='survey_{survey_number}',
        survey_data_fn=survey_path,
        metadata_fn=get_metadata_path('alpha_hq'),
        survey_id_col='survey_number',
        survey_id=survey_number
    )
    survey = creator.run()
    return survey
예제 #9
0
    def setUp(self) -> None:

        survey_path = (
            get_surveys_dir('usability_hub') /
            f'WMAP Demo Survey-results_cleaned.csv'
        )
        creator = UsabilityHubCreator(
            survey_name='survey_{survey_number}',
            survey_data_fn=survey_path,
            metadata_fn=get_metadata_path('usability_hub'),
            survey_id_col='survey_number',
        )
        self.survey = creator.run()