def test_find_fixture_for_installed_apps(self):
     """
     Sucessfully get datasets for INSTALLED_APPS defined in testsettings
     ignoring ImportError
     """
     from django.conf import settings
     self.assertEquals(find_datasets(settings.INSTALLED_APPS), [DummyData])
    def handle_noargs(self, **options):
        # Discover datasets in apps
        fixtures = find_datasets(settings.INSTALLED_APPS)
        if not len(fixtures):
            raise CommandError('No datasets fixtures found.')

        fill_database(fixtures, int(options.get('verbosity', 1)))
 def test_find_fixture_for_every_listed_app(self):
     """
     Should find fixture for a second app, even when the first don't.
     """
     apps = ['fixturapp.tests.emptyapp',      # no dataset package
             'fixturapp.tests.incompletapp',  # has package, no Data
             'fixturapp.tests.dummyapp']      # DummyData
     self.assertEquals(find_datasets(apps), [DummyData])
 def test_find_fixture_for_many_apps(self):
     """Sucessfully get datasets for a list of apps ignoring ImportError"""
     self.assertEquals(find_datasets([dummyapp, emptyapp]), [DummyData])