Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1977 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Tests fail on 1.9.7a4 quickstart app without identity

Reported by: dlatornell Owned by: Gustavo
Priority: normal Milestone:
Component: Tests Version: trunk
Severity: normal Keywords: quickstart
Cc:

Description

If a new app is quickstart-ed from 1.9.7a4 without identity, the source:projects/tg.devtools/trunk/devtools/templates/turbogears/+package+/tests/test_models.py_tmpl@5164 file incorrectly generates tests against the User class of the identity model.

Can a conditional be added to test_models.py_tmpl be changed to generate those tests only when the quickstart includes the identity option?

Attachments

test_models.py_tmpl-patch-1977 Download (523 bytes) - added by dlatornell 11 years ago.
Patch to suppress generation of TestUser? class when identity has not been requested

Change History

Changed 11 years ago by dlatornell

Patch to suppress generation of TestUser? class when identity has not been requested

comment:1 Changed 11 years ago by dlatornell

  • Status changed from new to assigned
  • Owner changed from anonymous to dlatornell

Attached patch changes source:projects/trunk/devtools/templates/turbogears/+package+/tests/test_models.py_tmpl to generate TestUser class only when identity == 'sqlalchemy'.

comment:2 Changed 11 years ago by Gustavo

  • Status changed from assigned to new
  • Owner changed from dlatornell to Gustavo

Thank you very much for the report. I'm checking your patch and it should get applied soon.

comment:3 Changed 11 years ago by Gustavo

  • Status changed from new to closed
  • Resolution set to fixed

I've applied your patch in [5352]. Thank you very much!

comment:4 Changed 11 years ago by anonymous

  • Milestone 1.9.7b1 deleted

Milestone 1.9.7b1 deleted

Note: See TracTickets for help on using tickets.