Coverage for Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm/teamcity/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-12 16:26 -0700

1# coding=utf-8 

2import os 

3 

4__all__ = ['is_running_under_teamcity'] 

5 

6__version__ = "1.29" 

7 

8teamcity_presence_env_var = "TEAMCITY_VERSION" 

9 

10 

11def is_running_under_teamcity(): 

12 return bool(os.getenv(teamcity_presence_env_var))