Ignore:
Timestamp:
21 Nov 2014, 13:09:24 (10 years ago)
Author:
uli
Message:

Activate PayPal? SDK on instance startup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/tests/test_zcml.py

    r11999 r12030  
    5656        self.conf1_path = os.path.join(self.workdir, 'paypal1.conf')
    5757        self.conf2_path = os.path.join(self.workdir, 'paypal2.conf')
    58         open(self.conf1_path, 'w').write('Fake')
    59         open(self.conf2_path, 'w').write('Fake')
     58        open(self.conf1_path, 'w').write('[rest-client]\n')
     59        open(self.conf2_path, 'w').write('[rest-client]\n')
    6060
    6161    def test_datacenter_config_directive(self):
     
    8585        zcstring(config)  # execute ZCML
    8686        result = getUtility(IPayPalConfig)
    87         assert result == {'path': self.conf1_path}
     87        assert result == {
     88            'path': self.conf1_path,
     89            'client_id': None,
     90            'client_secret': None,
     91            'mode': 'sandbox'
     92            }
    8893
    8994    def test_paypal_config_singleton(self):
Note: See TracChangeset for help on using the changeset viewer.