Ignore:
Timestamp:
21 Aug 2013, 20:52:03 (11 years ago)
Author:
Henrik Bettermann
Message:

Add webservice which can be used to update user data and enroll user in Moodle courses via webservices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_webservices.py

    r10503 r10521  
    3939        self.assertEqual(result, None)
    4040        return
     41
     42    def test_get_moodle_data(self):
     43        # make sure we can get applicant infos providing valid creds
     44        server = ServerProxy('http://mgr:mgrpw@localhost/app')
     45        self.setup_applicant(self.applicant)
     46        apl_id = self.applicant.applicant_id
     47        result = server.get_applicant_moodle_data(apl_id)
     48        self.assertEqual(
     49            result, {
     50                'lastname': 'Bubble',
     51                'email': 'bob@sample.com',
     52                'firstname': 'Bob',
     53                }
     54            )
     55        return
     56
Note: See TracChangeset for help on using the changeset viewer.