Example #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
Example #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
Example #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
Example #4
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
Example #5
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
Example #6
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