<s> """<STR_LIT>""" <EOL> from factory import SubFactory , Sequence <EOL> from tests . factories import ModularOdmFactory , UserFactory , ProjectFactory , ExternalAccountFactory <EOL> from website . addons . dataverse . model import ( <EOL> AddonDataverseUserSettings , <EOL> AddonDataverseNodeSettings <EOL> ) <EOL> class DataverseAccountFactory ( ExternalAccountFactory ) : <EOL> provider = '<STR_LIT>' <EOL> provider_name = '<STR_LIT>' <EOL> provider_id = Sequence ( lambda n : '<STR_LIT>' . format ( n ) ) <EOL> oauth_key = Sequence ( lambda n : '<STR_LIT>' . format ( n ) ) <EOL> display_name = '<STR_LIT>' <EOL> oauth_secret = '<STR_LIT>' <EOL> class DataverseUserSettingsFactory ( ModularOdmFactory ) : <EOL> class Meta : <EOL> model = AddonDataverseUserSettings <EOL> owner = SubFactory ( UserFactory ) <EOL> class DataverseNodeSettingsFactory ( ModularOdmFactory ) : <EOL> class Meta : <EOL> model = AddonDataverseNodeSettings <EOL> owner = SubFactory ( ProjectFactory ) <EOL> user_settings = SubFactory ( DataverseUserSettingsFactory ) </s>
