예제 #1
0
 def test_unreviewed_file_not_on_mirror(self):
     # Make sure the mirror dir is clear.
     mirrordir = settings.MIRROR_STAGE_PATH + '/3615'
     rmtree(mirrordir)
     self.file.update(status=amo.STATUS_UNREVIEWED)
     new_file = tasks.repackage_jetpack(self.builder_data())
     assert not storage.exists(new_file.mirror_file_path)
예제 #2
0
파일: test_tasks.py 프로젝트: potch/zamboni
 def test_unreviewed_file_not_on_mirror(self):
     # Make sure the mirror dir is clear.
     mirrordir = settings.MIRROR_STAGE_PATH + "/3615"
     rmtree(mirrordir)
     self.file.update(status=amo.STATUS_UNREVIEWED)
     new_file = tasks.repackage_jetpack(self.builder_data())
     assert not storage.exists(new_file.mirror_file_path)
예제 #3
0
 def test_unreviewed_file_not_on_mirror(self):
     # Make sure the mirror dir is clear.
     mirrordir = user_media_path('mirror_stage') + '/3615'
     rmtree(mirrordir)
     self.file.update(status=amo.STATUS_UNREVIEWED)
     new_file = tasks.repackage_jetpack(self.builder_data())
     assert not storage.exists(new_file.mirror_file_path)
예제 #4
0
 def test_file_on_mirror(self):
     # Make sure the mirror dir is clear.
     if storage.exists(os.path.dirname(self.file.mirror_file_path)):
         rmtree(os.path.dirname(self.file.mirror_file_path))
     new_file = tasks.repackage_jetpack(self.builder_data())
     assert storage.exists(new_file.mirror_file_path)
예제 #5
0
 def test_file_on_mirror(self):
     # Make sure the mirror dir is clear.
     if storage.exists(os.path.dirname(self.file.mirror_file_path)):
         rmtree(os.path.dirname(self.file.mirror_file_path))
     new_file = tasks.repackage_jetpack(self.builder_data())
     assert storage.exists(new_file.mirror_file_path)