コード例 #1
0
ファイル: tests.py プロジェクト: dan0712/django-app
 def setUp(self):
     self.message_count = 10
     self.from_user = UserFactory.create()
     self.to_user = UserFactory.create()
     self.to_group = GroupFactory.create(name="to2_g")
     self.to_group.user_set.add(self.to_user)
     for i in range(self.message_count):
         notify.send(self.from_user, recipient=self.to_user, verb='commented', action_object=self.from_user)
     # Send notification to group
     notify.send(self.from_user, recipient=self.to_group, verb='commented', action_object=self.from_user)
     self.message_count += 1
コード例 #2
0
 def setUp(self):
     self.client = ClientFactory.create(user=UserFactory.create())
     self.pricing_plan = self.client.advisor.firm.pricing_plan
     self.pricing_plan.bps = 100
     self.pricing_plan.fixed = 50
     self.pricing_plan.system_fee = 10, 5
     self.pricing_plan.save()
コード例 #3
0
ファイル: test_client.py プロジェクト: dan0712/django-app
    def setUp(self):
        self.support_group = GroupFactory(name=GROUP_SUPPORT_STAFF)
        # client with some personal assets, cash balance and goals
        self.region = RegionFactory.create()
        self.betasmartz_client_address = AddressFactory(region=self.region)
        self.risk_group = RiskProfileGroupFactory.create(name='Personal Risk Profile Group')
        self.personal_account_type = AccountTypeRiskProfileGroupFactory.create(account_type=0,
                                                                               risk_profile_group=self.risk_group)
        self.user = UserFactory.create()
        self.betasmartz_client = ClientFactory.create(user=self.user)

        self.betasmartz_client_account = ClientAccountFactory(primary_owner=self.betasmartz_client, account_type=ACCOUNT_TYPE_PERSONAL)
        self.external_asset1 = ExternalAssetFactory.create(owner=self.betasmartz_client)
        self.external_asset2 = ExternalAssetFactory.create(owner=self.betasmartz_client)

        self.goal1 = GoalFactory.create(account=self.betasmartz_client_account)
        self.goal2 = GoalFactory.create(account=self.betasmartz_client_account)

        self.betasmartz_client2 = ClientFactory.create()
コード例 #4
0
ファイル: tests.py プロジェクト: dan0712/django-app
 def setUp(self):
     self.from_user = UserFactory.create()
     self.to_user = UserFactory.create()
コード例 #5
0
ファイル: tests.py プロジェクト: dan0712/django-app
 def setUp(self):
     self.message_count = 10
     self.from_user = UserFactory.create()
     self.to_user = StaffUserFactory.create()
     for i in range(self.message_count):
         notify.send(self.from_user, recipient=self.to_user, verb='commented', action_object=self.from_user)