コード例 #1
0
 def test_fetch_from_file_absolute_path(self, local_config):
     config = get_project_from_file(normalize_url(str(local_config)))
     assert set(config.keys()) == self.expected
コード例 #2
0
 def test_fetch_from_file_relative_with_context(self, local_config):
     url = './' + local_config.basename
     with local_config.dirpath().as_cwd():
         config = get_project_from_file(normalize_url(url))
     assert set(config.keys()) == self.expected
コード例 #3
0
 def test_fetch_from_file_absolute_with_scheme(self, local_config):
     url = 'file://' + str(local_config)
     with local_config.dirpath().as_cwd():
         config = get_project_from_file(normalize_url(url))
     assert set(config.keys()) == self.expected
コード例 #4
0
ファイル: includes_test.py プロジェクト: SpeCT/compose-addons
 def test_fetch_from_file_relative_with_context(self, local_config):
     url = './' + local_config.basename
     with local_config.dirpath().as_cwd():
         config = get_project_from_file(normalize_url(url))
     assert set(config.keys()) == self.expected
コード例 #5
0
ファイル: includes_test.py プロジェクト: SpeCT/compose-addons
 def test_fetch_from_file_absolute_with_scheme(self, local_config):
     url = 'file://' + str(local_config)
     with local_config.dirpath().as_cwd():
         config = get_project_from_file(normalize_url(url))
     assert set(config.keys()) == self.expected
コード例 #6
0
ファイル: includes_test.py プロジェクト: SpeCT/compose-addons
 def test_fetch_from_file_absolute_path(self, local_config):
     config = get_project_from_file(normalize_url(str(local_config)))
     assert set(config.keys()) == self.expected