Ignore:
Timestamp:
16 Jun 2014, 08:29:22 (10 years ago)
Author:
Henrik Bettermann
Message:

Remove dependencies on kofacustom.nigeria.

Location:
main/kofacustom.sampleuni/trunk/src/kofacustom/sampleuni
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • main/kofacustom.sampleuni/trunk/src/kofacustom/sampleuni/students/tests/test_browser.py

    r10765 r11687  
    3434    IExtFileStore, IFileStoreNameChooser)
    3535from waeup.kofa.students.interfaces import IStudentsUtils
    36 from kofacustom.skeleton.testing import FunctionalLayer
     36from kofacustom.sampleuni.testing import FunctionalLayer
    3737
  • main/kofacustom.sampleuni/trunk/src/kofacustom/sampleuni/students/tests/test_export.py

    r11543 r11687  
    55from waeup.kofa.schoolgrades import ResultEntry
    66from waeup.kofa.students.tests.test_batching import StudentImportExportSetup
    7 from kofacustom.skeleton.utils.utils import CustomKofaUtils
    8 from kofacustom.skeleton.students.export import (
     7from kofacustom.sampleuni.utils.utils import CustomKofaUtils
     8from kofacustom.sampleuni.students.export import (
    99    CustomStudentsExporter, CustomStudentPaymentsExporter)
    10 from kofacustom.skeleton.testing import FunctionalLayer
     10from kofacustom.sampleuni.testing import FunctionalLayer
    1111
    1212
     
    4646        result = open(self.outfile, 'rb').read()
    4747        self.assertMatches(
    48             'adm_code,alr_date,alr_fname,alr_no,alr_results,clearance_locked,'
    49             'clr_code,date_of_birth,def_adm,disabled,email,emp2_end,'
    50             'emp2_position,emp2_reason,emp2_start,emp_end,emp_position,'
    51             'emp_reason,emp_start,employer,employer2,firstname,former_matric,'
    52             'fst_sit_date,fst_sit_fname,fst_sit_no,fst_sit_results,'
    53             'fst_sit_type,hq2_degree,hq2_disc,hq2_matric_no,hq2_school,'
    54             'hq2_session,hq2_type,hq_degree,hq_disc,hq_fname,hq_matric_no,'
    55             'hq_school,hq_session,hq_type,is_staff,lastname,lga,'
    56             'marit_stat,matric_number,middlename,nationality,'
    57             'next_kin_address,next_kin_name,next_kin_phone,next_kin_relation,'
    58             'nysc_lga,nysc_location,nysc_year,officer_comment,'
    59             'perm_address,personal_updated,phone,reg_number,'
    60             'religion,scd_sit_date,scd_sit_fname,scd_sit_no,'
    61             'scd_sit_results,scd_sit_type,sex,student_id,'
    62             'suspended,suspended_comment,password,state,history,certcode,is_postgrad,'
    63             'current_level,current_session\r\nmy adm code,,,,'
    64             '"[(\'visual_art\', \'A1\')]",0,my clr code,1981-02-04#,,,'
    65             'anna@sample.com,,,,,,,,,,,Anna,,,,,"[(\'visual_art\', \'A1\')]"'
    66             ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,'
    67             '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,,,,,'
    68             '"[(\'visual_art\', \'A1\')]",,f,A111111,0,,,created,'
    69             '[u\'2012-11-06 13:16:41 WAT - Record created by system\'],'
     48            'adm_code,clearance_locked,clr_code,date_of_birth,email,'
     49            'employer,firstname,lastname,matric_number,middlename,'
     50            'nationality,officer_comment,perm_address,personal_updated,'
     51            'phone,reg_number,sex,student_id,suspended,suspended_comment,'
     52            'password,state,history,certcode,is_postgrad,current_level,'
     53            'current_session\r\nmy adm code,0,my clr code,1981-02-04#,'
     54            'anna@sample.com,,Anna,Tester,234,M.,NG,,'
     55            '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,'
     56            'f,A111111,0,,,created,'
     57            '[u\'2014-06-16 08:23:55 UTC - Record created by system\'],'
    7058            'CERT1,0,200,2012\r\n',
    7159            result
     
    9987        result = open(self.outfile, 'rb').read()
    10088        self.assertMatches(
    101             'ac,amount_auth,creation_date,gateway_amt,p_category,p_current,'
    102             'p_id,p_item,p_level,p_session,p_state,payment_date,provider_amt,'
    103             'r_amount_approved,r_card_num,r_code,r_company,r_desc,'
    104             'r_pay_reference,thirdparty_amt,student_id,state,'
    105             'current_session\r\n'
    106             '666,12.12,2012-04-01 13:12:01,,schoolfee,1,my-id,p-item,'
    107             '100,2012,paid,2012-04-01 14:12:01,,12.12,'
    108             '789,r-code,interswatch,,,,A111111,created,2012\r\n',
     89            'ac,amount_auth,creation_date,p_category,p_current,p_id,'
     90            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
     91            'r_code,r_desc,student_id,state,current_session\r\n666,'
     92            '12.12,2012-04-01 13:12:01,schoolfee,1,my-id,p-item,'
     93            '100,2012,paid,2012-04-01 14:12:01,12.12,r-code,,'
     94            'A111111,created,2012\r\n',
    10995            result
    11096            )
  • main/kofacustom.sampleuni/trunk/src/kofacustom/sampleuni/students/tests/test_student.py

    r10765 r11687  
    2222from zope.interface import verify
    2323from waeup.kofa.testing import FunctionalTestCase
    24 from kofacustom.skeleton.students.student import CustomStudent, CustomStudentFactory
    25 from kofacustom.skeleton.students.studycourse import (
     24from kofacustom.sampleuni.students.student import CustomStudent, CustomStudentFactory
     25from kofacustom.sampleuni.students.studycourse import (
    2626    CustomStudentStudyCourse, CustomStudentStudyCourseFactory)
    27 from kofacustom.skeleton.students.studylevel import (
     27from kofacustom.sampleuni.students.studylevel import (
    2828    CustomStudentStudyLevel, CustomCourseTicket,
    2929    CustomStudentStudyLevelFactory,
    3030    CustomCourseTicketFactory)
    31 from kofacustom.skeleton.students.interfaces import (
     31from kofacustom.sampleuni.students.interfaces import (
    3232    ICustomStudent, ICustomStudentStudyCourse,
    3333    ICustomStudentStudyLevel, ICustomCourseTicket)
    34 from kofacustom.skeleton.testing import FunctionalLayer
     34from kofacustom.sampleuni.testing import FunctionalLayer
    3535
    3636
Note: See TracChangeset for help on using the changeset viewer.