I have a model with managed = False.
apple = models.CharField(max_length=30)
orange = models.CharField(max_length=30)
managed = False
DatabaseError: no such table: SAMPLE_SAMPLE_MODEL
For tests involving models with managed=False, it's up to you to
ensure the correct tables are created as part of the test setup.
Check out this blog post: http://www.caktusgroup.com/blog/2010/09/24/simplifying-the-testing-of-unmanaged-database-models-in-django/ It describes in detail the creation of a test runner for unmanaged models.