Пример #1
0
 def test_prime_cache(self):
     factories.ContrabandFactory()
     factories.ContrabandFactory()
     factories.ContrabandFactory()
     factories.ContrabandFactory()
     factories.ContrabandFactory()
     run()
Пример #2
0
 def handle(self, *args, **options):
     cutoff = float(options['cutoff']) if options['cutoff'] else None
     prime_cache.run(cutoff_duration_secs=cutoff)
Пример #3
0
 def handle(self, *args, **options):
     url = None
     if len(args) == 1:
         url = args[0]
     prime_cache.run(url)
Пример #4
0
 def handle(self, *args, **options):
     url = None
     if len(args) == 1:
         url = args[0]
     prime_cache.run(url)