Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
 def setUp(self):
     invalidation.invalidate_all()
     cache.clear()
     return super(TestCase, self).setUp()
Ejemplo n.º 3
0
 def setUp(self):
     invalidation.invalidate_all()