示例#1
0
    def test_get(self):
        """
        Get a single salt process environment variable.
        """
        self.assertFalse(environ.get(True))

        self.assertEqual(environ.get("key"), "")
示例#2
0
    def test_get(self):
        '''
        Get a single salt process environment variable.
        '''
        self.assertFalse(environ.get(True))

        self.assertEqual(environ.get('key'), '')
示例#3
0
    def test_get(self):
        '''
        Get a single salt process environment variable.
        '''
        self.assertFalse(environ.get(True))

        self.assertEqual(environ.get('key'), '')
示例#4
0
    def test_get(self):
        """
        Get a single salt process environment variable.
        """
        self.assertFalse(environ.get(True))

        self.assertEqual(environ.get("key"), "")
示例#5
0
def env_vars():
    return {
        'T17_SECRET_KEY': environ.get('T17_SECRET_KEY',''),
        'T17_MANDRILL_API_KEY': environ.get('T17_MANDRILL_API_KEY',''),
        'T17_PHONE_NUMBER': environ.get('T17_PHONE_NUMBER',''),
        'T17_DB_NAME': environ.get('T17_DB_NAME',''),
        'T17_DB_USER': environ.get('T17_DB_USER',''),
        'T17_DB_PASSWORD': environ.get('T17_DB_PASSWORD','')
    }