def handle(self, *args, **options):
        self.count = 0

        if not args:
            raise CommandError('provide path to file')

        # invalidate redis cache
        invalidate_all()

        with open(args[0]) as f:
            for line in f:
                line = line.strip()
                if line:
                    self.parse_line(line)
Esempio n. 2
0
 def setUp(self):
     invalidation.invalidate_all()
     cache.clear()
     return super(TestCase, self).setUp()
 def setUp(self):
     invalidation.invalidate_all()