Example #1
0
 def test_start_with_flask_env_development(self):
     os.environ['FLASK_ENV'] = 'development'
     self.assertEqual(start(), "Starting in development mode...")
Example #2
0
 def test_start_with_no_flask_env(self):
     del os.environ['FLASK_ENV']
     self.assertEqual(start(), "Starting in production mode...")
Example #3
0
 def test_start_with_flask_env_production(self):
     os.environ['FLASK_ENV'] = 'production'
     self.assertEqual(start(), "Starting in production mode...")
Example #4
0
def test_start_with_flask_env_development():
    os.environ['FLASK_ENV'] = 'development'
    eq_(start(), "Starting in development mode...")
Example #5
0
def test_start_with_no_flask_env():
    del os.environ['FLASK_ENV']
    eq_(start(), "Starting in production mode...")
Example #6
0
def test_start_with_flask_env_production():
    os.environ['FLASK_ENV'] = 'production'
    eq_(start(), "Starting in production mode...")