Ticket #33 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

South doesn't pass unit tests

Reported by: grail@… Owned by: andrew
Priority: minor Milestone:
Component: commands Version: 0.3
Keywords: Cc:


When I install South into my application, it fails "./manage test south" with this error:
<pre>...... ! Migration fakeapp:0001_jam probably doesn't exist.

  • Traceback:

ERROR: test_get_migration (south.tests.logic.TestMigrationLogic?)

Traceback (most recent call last):

File "/Users/alex/Documents/src/portal/south/tests/logic.py", line 150, in test_get_migration

self.assertRaises(ValueError?, migration.get_migration, app, "0001_jam")

File "/Library/Frameworks/Python?.framework/Versions/2.5/lib/python2.5/unittest.py", line 320, in failUnlessRaises

callableObj(*args, kwargs)

File "/Users/alex/Documents/src/portal/south/migration.py", line 78, in get_migration

module = import(app.name + "." + name, , , Migration?)

ImportError?: No module named 0001_jam

Ran 12 tests in 0.181s


Change History

comment:1 Changed 7 years ago by grail@…

Oops. "Preview" is the other button.

I'm off to try the latest version - the version drop down says that there's a 0.4 hanging around somewhere... watch this space.

comment:2 Changed 7 years ago by grail@…

Nope... I'm using the Subversion version of South.

comment:3 Changed 7 years ago by andrew

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

Yup, looks like I stupidly forgot to update the unit test when I updated the import logic earlier this week. The fix is in [84].

Note: See TracTickets for help on using tickets.