AlluraTest/alluratest/controller.py
def subscription_options(self, response):
        """
        Extract subscription options to be passed to React SubscriptionForm
        component from the <script> tag
        """
        script = None
        for s in response.html.findAll('script'):
            if s.getText().strip().startswith('document.SUBSCRIPTION_OPTIONS'):
                script = s
                break
        assert script is not None, 'subscription options not found'
        _, json_dict = script.getText().split('=')
        json_dict = json_dict.strip(' ;')
        return json.loads(json_dict)

        Extract subscription options to be passed to React SubscriptionForm
        component from the <script> tag
        
Extract subscription options to be passed to React SubscriptionForm
component from the 
Extract subscription options to be passed to React SubscriptionForm component from the
def subscription_options(self, response):
        script = None
        for s in response.html.findAll('script'):
            if s.getText().strip().startswith('document.SUBSCRIPTION_OPTIONS'):
                script = s
                break
        assert script is not None, 'subscription options not found'
        _, json_dict = script.getText().split('=')
        json_dict = json_dict.strip(' ;')
        return json.loads(json_dict)
def subscription_options ( self , response ) : script = None for s in response . html . findAll ( 'script' ) : if s . getText ( ) . strip ( ) . startswith ( 'document.SUBSCRIPTION_OPTIONS' ) : script = s break assert script is not None , 'subscription options not found' _ , json_dict = script . getText ( ) . split ( '=' ) json_dict = json_dict . strip ( ' ;' ) return json . loads ( json_dict )
Extract subscription options to be passed to React SubscriptionForm
component from the <script> tag
Extract subscription options to be passed to React SubscriptionForm component from the <script > tag
"""
        Extract subscription options to be passed to React SubscriptionForm
        component from the <script> tag
        """
self
response