added a basic test thing, so far it only tests for record size, and
that shouldn't change after they're in place anyway so I'll likely remove it once things are deemed fairly functional
This commit is contained in:
parent
bdcaaf1230
commit
a32feb79ed
1 changed files with 34 additions and 0 deletions
34
__init__.py
Normal file
34
__init__.py
Normal file
|
@ -0,0 +1,34 @@
|
|||
"""
|
||||
from record import SubmitterRecord
|
||||
from record import EmployerRecord
|
||||
from record import EmployeeWageRecord
|
||||
from record import OptionalEmployeeWageRecord
|
||||
from record import TotalRecord
|
||||
from record import OptionalTotalRecord
|
||||
from record import StateTotalRecord
|
||||
from record import FinalRecord
|
||||
"""
|
||||
|
||||
RECORD_TYPES = [
|
||||
'SubmitterRecord',
|
||||
'EmployerRecord',
|
||||
'EmployeeWageRecord',
|
||||
'OptionalEmployeeWageRecord',
|
||||
'TotalRecord',
|
||||
'OptionalTotalRecord',
|
||||
'StateTotalRecord',
|
||||
'FinalRecord',
|
||||
]
|
||||
|
||||
|
||||
|
||||
def test():
|
||||
import record, model
|
||||
for rname in RECORD_TYPES:
|
||||
inst = record.__dict__[rname]()
|
||||
print type(inst), len(inst.output())
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue