Beispiel #1
0
 def test_something(self):
     SETTINGS = _load_pmg_settings()
     if os.path.exists(SETTINGS_FILE):
         with open(SETTINGS_FILE, "rt") as f:
             d = yaml.load(f)
             for k, v in d.items():
                 self.assertEqual(v, SETTINGS[k])
     else:
         for k, v in SETTINGS.items():
             self.assertEqual(v, os.environ.get(k))
Beispiel #2
0
 def test_something(self):
     SETTINGS = _load_pmg_settings()
     if os.path.exists(SETTINGS_FILE):
         with open(SETTINGS_FILE, "rt") as f:
             d = yaml.safe_load(f)
             for k, v in d.items():
                 self.assertEqual(v, SETTINGS[k])
     else:
         for k, v in SETTINGS.items():
             self.assertEqual(v, os.environ.get(k))