Exemple #1
0
 def test_deployed_env_var(self):
     self.assertTrue(is_debug())
Exemple #2
0
 def test_deployed_false_env_var(self):
     set_environment_state(DEBUG.key, 'False')
     self.assertFalse(is_debug())
Exemple #3
0
 def test_not_deployed(self):
     self.assertTrue(is_debug())
Exemple #4
0
 def test_deployed_no_env_var(self):
     set_environment_state(DEBUG.key, remove=True)
     self.assertFalse(is_debug())
from musicleague import app
from musicleague.environment import get_port
from musicleague.environment import is_debug

if __name__ == "__main__":
    debug = is_debug()
    port = get_port()
    app.run(host='0.0.0.0', port=port, debug=debug)