Exemple #1
0
    def test_get_app_settings_detects_missing_settings(self):
        """Test that the _get_app_settings method ignore missing app settings file"""

        lkp = AppsLookupModule()
        app_path = "apps/foo"

        expected = {}
        self.assertEqual(lkp._get_app_settings(app_path), expected)
Exemple #2
0
    def test_get_app_settings(self):
        """Test the _get_app_settings method"""

        lkp = AppsLookupModule()
        app_path = "apps/learninglocker"

        expected = {
            "databases": [{"engine": "mongodb", "release": "3.2"}],
            "is_blue_green_compatible": False,
        }
        self.assertEqual(lkp._get_app_settings(app_path), expected)