コード例 #1
0
 def test_full_lot_parcel_does_not_contain_optional_stage(self):
     parcel_name = self.new_parcel(stage='l-int',
                                   delivery_type=LOT,
                                   extent='full')
     with self.app.test_request_context():
         parcel = self.wh.get_parcel(parcel_name)
         _, DELIVERY_STAGES_ORDER = _get_stages_for_parcel(parcel)
         self.assertNotIn('l-vsc', DELIVERY_STAGES_ORDER)
コード例 #2
0
ファイル: warehouse.py プロジェクト: eea/gioland
    def file_uploading(self):
        from parcel import _get_stages_for_parcel

        DELIVERY_STAGES, _ = _get_stages_for_parcel(self)
        stage = DELIVERY_STAGES.get(self.metadata.get("stage"), {})
        return stage.get("file_uploading", False)