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 #1815 (closed defect: fixed)

Opened 11 years ago

Last modified 10 years ago

UnitTests of the 20min Wiki fail or produce errors

Reported by: StevenMohr Owned by: faide
Priority: high Milestone: 1.1b2
Component: Tests Version: 1.0.4.4
Severity: normal Keywords:
Cc:

Description (last modified by Chris Arndt) (diff)

The tests in the  20min wiki are defect. The two controller tests which are present, fail or produce errors.

Also, there are no model tests. They should be created with the help of the testutil.DBTest class, so that the use the setUp and tearDown functions, which take care of the initialization of the test database. It would be also nice to extend the tests to show people how easy it is to write tests with nosetests.

Change History

comment:1 Changed 11 years ago by Chris Arndt

  • Priority changed from low to normal
  • Description modified (diff)
  • Version set to 1.0.4.4
  • Severity changed from minor to normal
  • Milestone set to 1.1

Yes, I totally agree.

Remember, we have to do the database initialization / cleanup stuff in setUp / tearDown for both SQLObject and SQLAlchemy. We could generate different code in the quickstart project depending on the chosen database, or we could make the code in the test case detect which ORM is used. I think I would prefer the former for simplicity's sake.

comment:2 Changed 11 years ago by faide

I keep this one for the 1.1 milestone since I'd like to have proper tests in a quick started project too :)

comment:3 Changed 11 years ago by Chris Arndt

  • Priority changed from normal to high

comment:4 Changed 11 years ago by faide

  • Milestone changed from 1.5 to 1.1

comment:5 Changed 10 years ago by Chris Arndt

  • Milestone changed from 1.1 to 1.1 beta 1

comment:6 Changed 10 years ago by Chris Arndt

  • Description modified (diff)
  • Summary changed from Repair tests of the 20min Wiki to Tests of the 20min Wiki fail or produce errors

comment:7 Changed 10 years ago by faide

  • Owner changed from anonymous to faide

We have made some progress on that front. I'll see if I can clear the last things we need to close this one.

comment:8 Changed 10 years ago by faide

  • Status changed from new to assigned
  • Summary changed from Tests of the 20min Wiki fail or produce errors to UnitTests of the 20min Wiki fail or produce errors

comment:9 Changed 10 years ago by faide

The tests work for me and I added new tests that really save to the db and query the db again to try and find object again. Seem good for a beta even id we still need to cope with potential (untested) problems with Elixir.

comment:10 Changed 10 years ago by faide

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.