コード例 #1
0
ファイル: importer_vows.py プロジェクト: mal/thumbor
 def topic(self):
     importer = Importer(None)
     importer.import_item(
         config_key='file_storage',
         item_value='thumbor.storages.file_storage',
         class_name='Storage')
     return importer.file_storage
コード例 #2
0
ファイル: importer_vows.py プロジェクト: mal/thumbor
 def topic(self):
     importer = Importer(None)
     importer.import_item(
         config_key='detectors',
         item_value=('thumbor.detectors.feature_detector',
                     'thumbor.detectors.feature_detector'),
         is_multiple=True)
     return importer.detectors
コード例 #3
0
ファイル: test_importer.py プロジェクト: GDxU/thumbor
 def test_single_item_should_equal_file_storage(self):
     importer = Importer(None)
     importer.import_item(
         config_key='file_storage',
         item_value='thumbor.storages.file_storage',
         class_name='Storage'
     )
     expect(importer.file_storage).to_equal(file_storage)
コード例 #4
0
ファイル: test_importer.py プロジェクト: adRise/thumbor
 def test_single_item_should_equal_file_storage(self):
     importer = Importer(None)
     importer.import_item(
         config_key='file_storage',
         item_value='thumbor.storages.file_storage',
         class_name='Storage'
     )
     expect(importer.file_storage).to_equal(file_storage)
コード例 #5
0
ファイル: test_importer.py プロジェクト: tony612/thumbor
 def test_single_item_should_equal_file_storage():
     importer = Importer(None)
     importer.import_item(
         config_key="file_storage",
         item_value="thumbor.storages.file_storage",
         class_name="Storage",
     )
     expect(getattr(importer, "file_storage")).to_equal(file_storage)
コード例 #6
0
ファイル: test_importer.py プロジェクト: varshithr/pixrezol
    def test_multiple_items_can_be_imported(self):
        importer = Importer(None)
        importer.import_item(config_key='detectors',
                             is_multiple=True,
                             item_value=('thumbor.detectors.feature_detector',
                                         'thumbor.detectors.feature_detector'))

        expect(importer.detectors).to_length(2)
        expect(importer.detectors).to_include(feature_detector)
コード例 #7
0
ファイル: importer_vows.py プロジェクト: 5um1th/thumbor
 def topic(self):
     importer = Importer(None)
     importer.import_item(
         config_key='detectors', is_multiple=True,
         item_value=(
             'thumbor.detectors.feature_detector',
             'thumbor.detectors.feature_detector'
         )
     )
     return importer.detectors
コード例 #8
0
ファイル: test_importer.py プロジェクト: GDxU/thumbor
    def test_multiple_items_can_be_imported(self):
        importer = Importer(None)
        importer.import_item(
            config_key='detectors', is_multiple=True,
            item_value=(
                'thumbor.detectors.feature_detector',
                'thumbor.detectors.feature_detector'
            )
        )

        expect(importer.detectors).to_length(2)
        expect(importer.detectors).to_include(feature_detector)
コード例 #9
0
ファイル: test_importer.py プロジェクト: tony612/thumbor
    def test_multiple_items_can_be_imported():
        importer = Importer(None)
        importer.import_item(
            config_key="detectors",
            is_multiple=True,
            item_value=(
                "thumbor.detectors.feature_detector",
                "thumbor.detectors.feature_detector",
            ),
        )

        expect(importer.detectors).to_length(2)
        expect(importer.detectors).to_include(feature_detector)
コード例 #10
0
ファイル: importer_vows.py プロジェクト: mikelikespie/thumbor
 def topic(self):
     importer = Importer(None)
     importer.import_item(config_key='file_storage', item_value='thumbor.storages.file_storage', class_name='Storage')
     return importer.file_storage