Merge lp:~vauxoo/addons-vauxoo/user_story_yml into lp:addons-vauxoo

Proposed by Miguel Delgado (Vauxoo)
Status: Needs review
Proposed branch: lp:~vauxoo/addons-vauxoo/user_story_yml
Merge into: lp:addons-vauxoo
Diff against target: 53 lines (+29/-1)
2 files modified
user_story/__openerp__.py (+4/-1)
user_story/test/user_story_record.yml (+25/-0)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/user_story_yml
Reviewer Review Type Date Requested Status
Nhomar - Vauxoo todo Needs Fixing
Tulio Ruiz (Vauxoo) Pending
Review via email: mp+126328@code.launchpad.net

Description of the change

[ADD] test yaml para el modulo de historias de usuarios

To post a comment you must log in.
Revision history for this message
Nhomar - Vauxoo (nhomar) wrote :

Correct dependencies.

review: Needs Fixing (todo)

Unmerged revisions

469. By Vauxoo

[ADD] test yml para el modulo de historias de usuarios

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'user_story/__openerp__.py'
2--- user_story/__openerp__.py 2012-08-27 15:13:45 +0000
3+++ user_story/__openerp__.py 2012-09-25 19:48:23 +0000
4@@ -26,7 +26,7 @@
5 {
6 "name" : "User Story",
7 "version" : "0.1",
8- "depends" : ["base","project_scrum"],
9+ "depends" : ["project","project_scrum"],
10 "author" : ["Vauxoo",],
11 "description" : """
12 What do this module:
13@@ -45,6 +45,9 @@
14 ],
15 "demo_xml" : [
16 ],
17+ "test": [
18+ 'test/user_story_record.yml',
19+ ],
20 "update_xml" : [
21 "report/ir_report.xml",
22 "security/userstory_security.xml",
23
24=== added directory 'user_story/test'
25=== added file 'user_story/test/user_story_record.yml'
26--- user_story/test/user_story_record.yml 1970-01-01 00:00:00 +0000
27+++ user_story/test/user_story_record.yml 2012-09-25 19:48:23 +0000
28@@ -0,0 +1,25 @@
29+-
30+ !record {model: user.story, id: user_story01}:
31+ name: Prueba1
32+ owner: Miguel Delgado
33+ project_id: project.project_integrate_openerp
34+ planned_hours: 17.5
35+ user_id: base.user_demo
36+ description: Aqui va la descripcion de la historia de usuario
37+ date: !eval time.strftime('%d-%m-%Y')
38+ accep_crit_ids:
39+ - name: Criterio 1
40+ scenario: Escenario 1
41+ - name: Criterio 2
42+ scenario: Escenario 2
43+ info: Aqui va cualquier informacion relevante para la historia de usuario.
44+ asumption: Asumsiones necesarias para la historia de usuario.
45+ task_ids:
46+ - project.project_task_16
47+
48+-
49+ I check if user story was created
50+-
51+
52+ !assert {model: user.story, id: user_story01}:
53+ - id