(self, restore_state, restore_user, needed_versions, report_configs)
return fixtures
Generates a report fixture for mobile that can be used by a report module
Generates a report fixture for mobile that can be used by a report module
Generates a report fixture for mobile that can be used by a report module
def __call__(self, restore_state, restore_user, needed_versions, report_configs):
        """
        Generates a report fixture for mobile that can be used by a report module
        """
        fixtures = []
        if needed_versions.intersection({MOBILE_UCR_VERSION_1, MOBILE_UCR_MIGRATING_TO_2}):
            fixtures.append(_get_report_index_fixture(restore_user))
            fixtures.extend(self._v1_fixture(restore_user, report_configs))
        else:
            fixtures.extend(self._empty_v1_fixture(restore_user))

        return fixtures
def __call__ ( self , restore_state , restore_user , needed_versions , report_configs ) : fixtures = [ ] if needed_versions . intersection ( { MOBILE_UCR_VERSION_1 , MOBILE_UCR_MIGRATING_TO_2 } ) : fixtures . append ( _get_report_index_fixture ( restore_user ) ) fixtures . extend ( self . _v1_fixture ( restore_user , report_configs ) ) else : fixtures . extend ( self . _empty_v1_fixture ( restore_user ) ) return fixtures