Esempio n. 1
0
 def non_missing_file_IOErrors_are_raised(self):
     c = Config()
     c._load_yml = Mock(side_effect=IOError(17, "uh, what?"))
     c.set_runtime_path("is-a.yml")  # Triggers use of _load_yml
     c.load_runtime()
Esempio n. 2
0
 def nonexistent_files_are_skipped_and_logged(self, mock_debug):
     c = Config()
     c._load_yml = Mock(side_effect=IOError(2, "aw nuts"))
     c.set_runtime_path("is-a.yml")  # Triggers use of _load_yml
     c.load_runtime()
     mock_debug.assert_any_call("Didn't see any is-a.yml, skipping.")