~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to unifield_tests/tests/test_0201_resourcing_fo.py

  • Committer: Quentin THEURET
  • Date: 2014-10-08 12:55:38 UTC
  • mto: (2281.4.3 w2506)
  • mto: This revision was merged to the branch mainline in revision 2288.
  • Revision ID: qt@tempo-consulting.fr-20141008125538-9e7zu8c7arg8n5yv
UF-2490 [TEST] Add partner addresses as master data and create first tests for IR/FO resourcing

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# -*- coding: utf8 -*-
 
3
from resourcing import ResourcingTest
 
4
 
 
5
 
 
6
class ResourcingFOTest(ResourcingTest):
 
7
 
 
8
    def create_order(self, db):
 
9
        """
 
10
        Create a field order (sale.order) with 4 lines:
 
11
        - 2 lines with LOG products:
 
12
            - 1 line with 10 PCE
 
13
            - 1 line with 20 PCE
 
14
        - 2 lines with MED products:
 
15
            - 1 line with 30 PCE
 
16
            - 1 line with 40 PCE
 
17
        """
 
18
        # Prepare data
 
19
        order_id = super(ResourcingFOTest, self).\
 
20
            create_order(db)
 
21
 
 
22
 
 
23
    def test_010_only_create(self):
 
24
        db = self.c1
 
25
        order_id = self.create_order(db)
 
26
 
 
27
 
 
28
def get_test_class():
 
29
    '''Return the class to use for tests'''
 
30
    return ResourcingFOTest
 
31
 
 
32
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: